dotherside/CMakeLists.txt

24 lines
636 B
CMake
Raw Normal View History

2014-12-28 13:56:10 +00:00
cmake_minimum_required(VERSION 3.0)
2016-05-16 20:14:06 +00:00
# Add additional source path for cmake
2019-11-17 23:05:58 +00:00
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/)
2016-05-16 20:14:06 +00:00
# Add strict warning checking for C++
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
2019-11-17 23:05:58 +00:00
# Add Coverage option
option(ENABLE_COVERAGE "Enable coverage" OFF)
2016-05-16 20:14:06 +00:00
2019-11-17 23:05:58 +00:00
add_compile_options(-Wall -Wno-long-long -pedantic)
2016-05-16 20:14:06 +00:00
2019-11-17 23:05:58 +00:00
if (ENABLE_COVERAGE)
message(STATUS "Enabling coverage")
set(CMAKE_BUILD_TYPE Debug)
add_compile_options(-g -O0 --coverage)
2019-11-19 21:42:33 +00:00
add_link_options(--coverage)
2019-11-17 23:05:58 +00:00
endif()
endif()
2016-05-16 20:14:06 +00:00
2016-07-05 15:58:36 +00:00
add_subdirectory(doc)
add_subdirectory(lib)
add_subdirectory(test)