mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-18 16:47:33 +01:00
34 lines
745 B
CMake
34 lines
745 B
CMake
cmake_minimum_required(VERSION 3.27)
|
|
project(detection_pot VERSION 1.0.0)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
find_package( OpenCV REQUIRED )
|
|
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
|
|
|
set(COMMON_SOURCES
|
|
utils/utils.h
|
|
)
|
|
|
|
set(calibrationSources
|
|
${COMMON_SOURCES}
|
|
calibration.cpp
|
|
)
|
|
|
|
add_executable(calibration ${calibrationSources})
|
|
|
|
target_link_libraries( calibration ${OpenCV_LIBS} )
|
|
|
|
# Project 2 sources and executable
|
|
set(arucoDetectionSources
|
|
${COMMON_SOURCES}
|
|
arucoDetector.cpp
|
|
utils/ArucoTag.cpp
|
|
utils/ArucoTag.h
|
|
utils/ArucoDetector.cpp
|
|
utils/ArucoDetector.h
|
|
)
|
|
|
|
add_executable(arucoDetector ${arucoDetectionSources})
|
|
|
|
target_link_libraries( arucoDetector ${OpenCV_LIBS} ) |