Improve CMake
This commit is contained in:
parent
a98cbc8518
commit
d44571f1c8
5 changed files with 19 additions and 27 deletions
|
|
@ -2,18 +2,10 @@
|
|||
# This file is subject to the license terms in the LICENSE file
|
||||
# found in the top-level directory of this distribution.
|
||||
|
||||
cmake_minimum_required(VERSION 3.3)
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(cppast VERSION 0.0)
|
||||
|
||||
# options
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
set(default_assertions ON)
|
||||
else()
|
||||
set(default_assertions OFF)
|
||||
endif()
|
||||
option(CPPAST_ENABLE_ASSERTIONS "whether or not to enable internal assertions for the cppast library" ${default_assertions})
|
||||
option(CPPAST_ENABLE_PRECONDITION_CHECKS "whether or not to enable precondition checks" ON)
|
||||
|
||||
option(CPPAST_BUILD_TEST "whether or not to build the tests" OFF)
|
||||
option(CPPAST_BUILD_EXAMPLE "whether or not to build the examples" OFF)
|
||||
option(CPPAST_BUILD_TOOL "whether or not to build the tool" OFF)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue