nameof_module/CMakeLists.txt

18 lines
455 B
Text
Raw Normal View History

2018-03-26 12:02:43 +00:00
cmake_minimum_required(VERSION 3.6.4)
project(nameof)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2018-03-28 08:54:21 +00:00
if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
add_compile_options(-pedantic)
add_compile_options(-Wall)
add_compile_options(-Wextra)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
add_compile_options(/W4)
endif()
2018-03-27 09:03:12 +00:00
2018-03-26 12:02:43 +00:00
add_subdirectory(example)
2018-03-28 08:54:21 +00:00
enable_testing()
2018-03-26 12:02:43 +00:00
add_subdirectory(test)