-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
39 lines (31 loc) · 975 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
36
37
38
39
cmake_minimum_required(VERSION 3.18)
set(MAJOR_VERSION 1)
set(MINOR_VERSION 14)
set(PATCH_VERSION 0)
set(REDUCT_CPP_FULL_VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION})
project(reductcpp VERSION ${REDUCT_CPP_FULL_VERSION})
message(STATUS "Version ${REDUCT_CPP_FULL_VERSION}")
set(REDUCT_CPP_ENABLE_TESTS OFF CACHE BOOL "Compile tests")
set(REDUCT_CPP_USE_STD_CHRONO
OFF
CACHE BOOL
"use std::chrono instead of date library"
)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
include(cmake/InstallDependencies.cmake)
configure_file(
cmake/ReductCppConfig.cmake.in
${CMAKE_BINARY_DIR}/cmake/ReductCppConfig.cmake
@ONLY
)
configure_file(
cmake/ReductCppConfigVersion.cmake.in
${CMAKE_BINARY_DIR}/cmake/ReductCppConfigVersion.cmake
@ONLY
)
add_subdirectory(src)
if(REDUCT_CPP_ENABLE_TESTS)
add_subdirectory(tests)
endif()