|
|
|
|
|
|
|
|
project(ScopeGuard VERSION 0.0.1) |
|
|
project(ScopeGuard VERSION 0.0.1) |
|
|
message(STATUS "~~~ ${PROJECT_NAME} v${PROJECT_VERSION} ~~~") |
|
|
message(STATUS "~~~ ${PROJECT_NAME} v${PROJECT_VERSION} ~~~") |
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") |
|
|
option(UNITTEST "Build Unit Tests" ON) |
|
|
option(UNITTEST "Build Unit Tests" ON) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( CMAKE_BUILD_TYPE ) |
|
|
|
|
|
message(STATUS "Build Type : ${CMAKE_BUILD_TYPE}") |
|
|
|
|
|
else() |
|
|
|
|
|
message(STATUS "Build Type : None") |
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_compile_options(-Wall |
|
|
add_compile_options(-Wall |
|
|
-Wextra |
|
|
-Wextra |
|
|
-pedantic |
|
|
-pedantic |