2016-01-06 22:40:53 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED on)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS off)
|
2016-01-21 21:56:41 +00:00
|
|
|
add_compile_options(-Wall -DREALM_HAVE_CONFIG)
|
|
|
|
add_compile_options("$<$<CONFIG:DEBUG>:-DREALM_DEBUG>")
|
2016-05-06 21:00:44 +00:00
|
|
|
add_compile_options("$<$<CONFIG:COVERAGE>:-DREALM_DEBUG>")
|
2016-01-06 22:40:53 +00:00
|
|
|
|
2016-01-07 01:23:11 +00:00
|
|
|
if(${CMAKE_GENERATOR} STREQUAL "Ninja")
|
|
|
|
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fcolor-diagnostics")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcolor-diagnostics")
|
|
|
|
elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdiagnostics-color=always")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always")
|
|
|
|
endif()
|
2016-01-06 22:40:53 +00:00
|
|
|
endif()
|