cmake_minimum_required(VERSION 3.16) project(kindle2notes LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) function(kindle2notes_enable_warnings target) if(MSVC) target_compile_options(${target} PRIVATE /W4) else() target_compile_options(${target} PRIVATE -Wall -Wextra -Wpedantic) endif() endfunction() add_executable(kindle2notes typefactory/convertlatex.cpp typefactory/convertlatex.h typefactory/convertmarkdown.cpp typefactory/convertmarkdown.h typefactory/converter.cpp typefactory/converter.h typefactory/main.cpp typefactory/typefactory.h ) kindle2notes_enable_warnings(kindle2notes)