Sfoglia il codice sorgente

Module path set and output of the build type.

main
offa 7 anni fa
parent
commit
f61f3e059b
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. +8
    -0
      CMakeLists.txt

+ 8
- 0
CMakeLists.txt Vedi 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…
Annulla
Salva