-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathCMakeLists.txt
29 lines (18 loc) · 1.09 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
cmake_minimum_required(VERSION 3.0)
project(CameraCalibration)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
find_package(Ceres REQUIRED)
add_executable(ocam-fisheye-calib fisheye-calib.cpp ocam_calibration.h ocam_calibration.cpp calib_converter/calib_converter.h calib_converter/calib_converter.cpp)
target_link_libraries(ocam-fisheye-calib ${OpenCV_LIBRARIES} ceres)
target_include_directories(ocam-fisheye-calib PRIVATE ${OpenCV_INCLUDE_DIRS} ${CERES_INCLUDE_DIRS} ${CERES_INCLUDE_DIRS}/ceres/internal/miniglog ${EIGEN3_INCLUDE_DIRS})
add_subdirectory(distort)
add_subdirectory(calib_converter)
add_executable(pinhole-calib pinhole-calib.cpp)
target_include_directories(pinhole-calib PRIVATE ${OpenCV_INCLUDE_DIRS})
target_link_libraries(pinhole-calib PRIVATE ${OpenCV_LIBRARIES})
add_executable(stereo-calib stereo-calib.cpp)
target_include_directories(stereo-calib PRIVATE ${OpenCV_INCLUDE_DIRS})
target_link_libraries(stereo-calib PRIVATE ${OpenCV_LIBRARIES})
add_executable(imagelist_creator imagelist_creator.cpp)
target_link_libraries(imagelist_creator PRIVATE ${OpenCV_LIBRARIES})