-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCMakeLists.txt
62 lines (46 loc) · 1.26 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
cmake_minimum_required(VERSION 2.8.3)
project(odom_extrinsic_calibrate)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS "-std=c++11 ")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fpic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpic -Werror=return-type")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
find_package( Ceres 1.6.0 QUIET )
MESSAGE(STATUS "CERES found")
include_directories(include
thirdpart
${CERES_INCLUDE_DIRS}
)
#############
# LIBRARIES #
#############
add_library(${PROJECT_NAME}
src/calibrate_process.cpp
src/OdomExtrinsicCalibrateError.cpp
src/odom_calibrate_solver.cpp
src/utils.cpp
src/Time.cpp
src/Duration.cpp
)
target_link_libraries(${PROJECT_NAME}
${CERES_LIBRARIES} pthread)
add_executable(calib
sample/calibrate_encoder.cpp
sample/utils/read_dataset.cpp
sample/utils/read_dataset.h
)
target_link_libraries(calib
${PROJECT_NAME}
)
add_executable(testOdomExtrinsicCalibrateError
test/testOdomExtrinsicCalibrateError.cpp
)
target_link_libraries(testOdomExtrinsicCalibrateError
${PROJECT_NAME}
)
add_executable(testOdomCalibrateExtrinsicSimulation
test/testOdomCalibrateExtrinsicSimulation.cpp
)
target_link_libraries(testOdomCalibrateExtrinsicSimulation
${PROJECT_NAME}
)