-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
37 lines (27 loc) · 962 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
cmake_minimum_required(VERSION 3.12)
project(CubicInterpolation LANGUAGES CXX)
if (EXISTS ${CMAKE_BINARY_DIR}/conan_paths.cmake)
include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
endif()
message(STATUS ${CMAKE_PREFIX_PATH})
message(STATUS ${CMAKE_MODULE_PATH})
set(CubicInterpolation_VERSION_MAJOR 0)
set(CubicInterpolation_VERSION_MINOR 1)
set(CubicInterpolation_VERSION_PATCH 5)
set(CubicInterpolation_VERSION ${CubicInterpolation_VERSION_MAJOR}.${CubicInterpolation_VERSION_MINOR}.${CubicInterpolation_VERSION_PATCH})
set(CMAKE_CXX_STANDARD 14)
find_package(Eigen3 REQUIRED)
find_package(Boost COMPONENTS filesystem serialization REQUIRED)
add_subdirectory(src)
option(BUILD_EXAMPLE "build example" OFF)
if(BUILD_EXAMPLE)
add_subdirectory(example)
endif()
option(BUILD_DOCUMENTATION "build documentation" OFF)
if(BUILD_DOCUMENTATION)
add_subdirectory(docs)
endif()
if(BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
endif()