-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (28 loc) · 1.27 KB
/
CMakeLists.txt
File metadata and controls
37 lines (28 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.1)
project(QuEST VERSION 0.1 LANGUAGES CXX)
# Location of custom detection scripts
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules")
# Set RELEASE as default build type
if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE RELEASE CACHE STRING
"Choose the type of build, options are: None Debug Release."
FORCE)
endif (NOT CMAKE_BUILD_TYPE)
# Enable warning flags if available
include("${PROJECT_SOURCE_DIR}/cmake/flag_check.cmake")
enable_cxx_compiler_flag_if_supported("-Wall")
enable_cxx_compiler_flag_if_supported("-Wextra")
enable_cxx_compiler_flag_if_supported("-fdiagnostics-color=auto")
enable_cxx_compiler_flag_if_supported("-pedantic")
set(CPP_FEATURES cxx_auto_type cxx_constexpr cxx_delegating_constructors cxx_lambdas cxx_range_for cxx_strong_enums)
add_library(libquest "")
target_compile_features(libquest PRIVATE ${CPP_FEATURES})
find_package(Eigen3 3.2.2 REQUIRED)
target_include_directories(libquest PUBLIC ${EIGEN3_INCLUDE_DIR})
find_package(Boost 1.55 COMPONENTS program_options REQUIRED)
target_include_directories(libquest PUBLIC ${Boost_INCLUDE_DIR})
include("${PROJECT_SOURCE_DIR}/cmake/set_git_hash.cmake")
set_git_macros(libquest)
include(src/CMakeLists.txt)
include(test/CMakeLists.txt)
include(tools/CMakeLists.txt)