-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (39 loc) · 1.1 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# Copyright 2020-2021 CNRS-UM LIRMM,CNRS-AIST JRL
#
# Version minimum
cmake_minimum_required(VERSION 3.8.2) # For c++17
set(CMAKE_CXX_STANDARD 17)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(PROJECT_NAME coma)
set(PROJECT_DESCRIPTION "JRL Generic coma (Comprehensive Motion Algebra) library")
set(PROJECT_URL "...")
set(PROJECT_VERSION 1.0.0)
set(PROJECT_USE_CMAKE_EXPORT TRUE)
set(DOXYGEN_USE_MATHJAX "YES")
include(cmake/base.cmake)
include(cmake/msvc-specific.cmake)
# SET(CXX_DISABLE_WERROR True)
project(${PROJECT_NAME} CXX)
option(BUILD_TESTING "Build unit tests." ON)
option(BUILD_EXAMPLE "Build example" ON)
option(BUILD_BENCHMARK "Build benchmarks" ON)
if(MSVC)
set(CMAKE_MSVCIDE_RUN_PATH "\$(SolutionDir)/src/\$(Configuration)")
endif()
# External dependencies
add_project_dependency(Eigen3 REQUIRED NO_MODULE)
# Minimize warnings
if (MSVC)
add_compile_options(/W4 /WX)
endif()
add_subdirectory(include)
if (${BUILD_TESTING})
add_subdirectory(test)
endif()
if (${BUILD_EXAMPLE})
add_subdirectory(example)
endif()
if (${BUILD_BENCHMARK})
add_subdirectory(benchmark)
endif()