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

@@ -3,9 +3,17 @@ cmake_minimum_required(VERSION 3.2)
project(ScopeGuard VERSION 0.0.1)
message(STATUS "~~~ ${PROJECT_NAME} v${PROJECT_VERSION} ~~~")

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
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
-Wextra
-pedantic

Loading…
Cancel
Save