-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
62 lines (48 loc) · 1.89 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
53
54
55
56
57
58
59
60
61
62
cmake_minimum_required(VERSION 3.0.0)
project(PoseSpline)
LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(cmake_build_type Release)
find_package(Eigen3 REQUIRED)
find_package(Ceres REQUIRED)
find_package(OpenCV REQUIRED)
find_package(Glog REQUIRED)
include_directories(include
${EIGEN3_INCLUDE_DIR}
${CERES_INCLUDE_DIRS}
)
include_directories( ${GLOG_INCLUDE_DIRS})
add_library( PoseSpline
src/utility/Duration.cpp
src/utility/Time.cpp
src/extern/spline_projection_error.cpp
src/extern/pinhole_project_error.cpp
src/extern/project_error.cpp
src/extern/RotateVectorError.cpp
src/pose-spline/QuaternionSplineUtility.cpp
src/pose-spline/QuaternionSpline.cpp
src/pose-spline/QuaternionLocalParameter.cpp
src/pose-spline/QuaternionSplineSampleError.cpp
src/pose-spline/PoseSplineSampleError.cpp
src/pose-spline/PoseSplineUtility.cpp
src/pose-spline/OmegaExtrinsicTemperalError.cpp
src/pose-spline/QuaternionOmegaSampleError.cpp
src/pose-spline/PoseSpline.cpp
src/pose-spline/PoseLocalParameter.cpp
src/pose-spline/VectorSpaceSpline.cpp
src/pose-spline/VectorSplineSampleError.cpp
src/pose-spline/VectorSplineSampleAutoError.cpp
src/pose-spline/VectorSplineSampleVelocityError.cpp
src/pose-spline/LinearAccelerateSampleError.cpp
src/pose-spline/AngularVelocitySampleError.cpp
src/pose-spline/csv_trajectory.cpp)
target_link_libraries(PoseSpline
${CERES_LIBRARIES}
${OPENCV_LIBRARIES}
${GLOG_LIBRARIES})
## Test
# Prepare "Catch" library for other executables
set(CATCH_INCLUDE_DIR include/utility/catch)
add_library(Catch INTERFACE)
target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR})
add_subdirectory(test)