stuff-from-scratch/CMakeLists.txt

30 lines
880 B
CMake
Raw Normal View History

2020-05-02 07:31:03 +00:00
cmake_minimum_required(VERSION 3.10)
# set the project name
2022-11-30 12:30:20 +00:00
project(NotesTK)
2020-05-02 07:31:03 +00:00
2022-12-11 19:50:34 +00:00
set(CMAKE_CXX_STANDARD 20)
2020-05-02 07:31:03 +00:00
set(CMAKE_CXX_STANDARD_REQUIRED True)
2023-01-16 11:56:46 +00:00
set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
2020-07-04 18:43:08 +00:00
set_property( GLOBAL PROPERTY USE_FOLDERS ON)
2022-11-30 12:30:20 +00:00
set (CMAKE_MODULE_PATH infra/cmake)
2020-07-04 18:43:08 +00:00
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
2023-01-16 11:56:46 +00:00
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3")
elseif(FALSE)
2022-11-30 18:28:50 +00:00
set(GCC_COVERAGE_COMPILE_FLAGS "-fprofile-arcs -ftest-coverage")
2022-12-11 19:50:34 +00:00
set(GCC_COVERAGE_LINK_FLAGS "-lgcov")
2022-11-30 18:28:50 +00:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}")
endif()
2020-05-02 07:31:03 +00:00
add_subdirectory(src)
2022-12-11 19:50:34 +00:00
add_subdirectory(test)
add_subdirectory(plugins)
add_subdirectory(apps)