forked from wasmx/fizzy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (24 loc) · 957 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.15)
cmake_policy(SET CMP0077 NEW)
include(cmake/cable.cmake)
include(CableBuildType)
include(CableCompilerSettings)
include(CMakeDependentOption)
option(FIZZY_TESTING "Enable Fizzy internal tests" OFF)
cmake_dependent_option(HUNTER_ENABLED "Enable Hunter package manager" ON
"FIZZY_TESTING" OFF)
if(HUNTER_ENABLED)
include(cmake/Hunter/init.cmake)
endif()
cable_set_build_type(DEFAULT Release CONFIGURATION_TYPES Debug;Release;Coverage)
project(fizzy LANGUAGES CXX)
cable_configure_compiler()
set(include_dir ${PROJECT_SOURCE_DIR}/include) # Public include directory.
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
add_subdirectory(lib)
if(FIZZY_TESTING)
enable_testing() # Enable CTest. Must be done in main CMakeLists.txt.
add_subdirectory(test)
endif()