Browse Source

Module path set and output of the build type.

main
offa 7 years ago
parent
commit
f61f3e059b
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      CMakeLists.txt

+ 8
- 0
CMakeLists.txt View File

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

Loading…
Cancel
Save