-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathCMakeLists.txt
65 lines (48 loc) · 2.01 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
63
64
65
cmake_minimum_required(VERSION 2.8)
project(camera_lidar_calibration)
set(CMAKE_CXX_STANDARD 11)
## Test modele, if you do not have aruco, just comment these lines
set(ARUCO_PATH /usr/local)
SET(CMAKE_MODULE_PATH ${ARUCO_PATH}/lib/cmake)
SET(ARUCO_INCLUDE_DIRS ${ARUCO_PATH}/include/aruco )
find_package(aruco REQUIRED )
## Test modele, if you do not have aruco, just comment these lines
#SET(CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/lib/cmake/ )
MESSAGE(${ARUCO_INCLUDE_DIRS} )
## Test modele, if you do not have aruco, just comment these lines
find_package(OpenCV 3.3 REQUIRED)
find_package(Ceres REQUIRED)
find_package(Eigen3 REQUIRED)
## Test modele, if you do not have aruco, just comment these lines
## Test modele, if you do not have aruco, just comment these lines
INCLUDE(FindPkgConfig)
include_directories(
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}
${CERES_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${ARUCO_INCLUDE_DIRS} ## Test modele, if you do not have aruco, just comment these lines
)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
add_library(${PROJECT_NAME} SHARED
src/config.cc
)
LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/res)
target_link_libraries(${PROJECT_NAME}
${OpenCV_LIBS}
${EIGEN3_LIBS}
${CERES_LIBRARIES}
${aruco_LIBS}
# ${ARUCO_LIBS}
)
add_executable(camera_laser_calibration src/camera_lidar_calibration.cc)
target_link_libraries(camera_laser_calibration ${PROJECT_NAME})
add_executable(corner_detecter src/corner_detecter.cc)
target_link_libraries(corner_detecter ${PROJECT_NAME})
add_executable(reprojection src/reprojection.cc)
target_link_libraries(reprojection ${PROJECT_NAME})
add_executable(detect_plane_with_aruco src/detect_plane_with_aruco.cc)
target_link_libraries(detect_plane_with_aruco ${PROJECT_NAME})
add_executable(camera_laser_calibration_v2 src/camera_lidar_calibration_v2.cc)
target_link_libraries(camera_laser_calibration_v2 ${PROJECT_NAME})