29 lines
1.2 KiB
CMake
29 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(rm2023_power_rune)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
find_package(Ceres REQUIRED)
|
|
include_directories(${CERES_INCLUDE_DIRS})
|
|
find_package( OpenCV REQUIRED )
|
|
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
|
find_package(Eigen3 REQUIRED)
|
|
include_directories(${EIGEN3_INCLUDE_DIRS})
|
|
|
|
#matplotlib cpp
|
|
include_directories( ${PYTHON_INCLUDE_DIRS} )
|
|
#find_package(PythonLibs REQUIRED)
|
|
|
|
find_package(Python COMPONENTS Development)
|
|
#include_directories(/usr/local/lib/python2.7/dist-packages/numpy/core/include)
|
|
|
|
|
|
include_directories( include )
|
|
add_executable(rm2023_power_rune src/main.cpp src/bufferDetector.cpp src/parameter.cpp src/PnP.cpp src/preprocessing.cpp src/tuneParameter.cpp src/rune_fit.cpp include/ExtendedKalmanFilter.h src/ExtendedKalmanFilter.cpp src/rune_tracker.cpp)
|
|
target_link_libraries(rm2023_power_rune ${OpenCV_LIBS})
|
|
target_link_libraries(rm2023_power_rune ${EIGEN3_LIBRARIES})
|
|
target_link_libraries(rm2023_power_rune ${CERES_LIBRARIES})
|
|
target_link_libraries(rm2023_power_rune ${PYTHON_LIBRARIES})
|
|
#target_include_directories(power_rune PRIVATE ${PYTHON_INCLUDE_DIRS})
|
|
target_link_libraries(rm2023_power_rune Python::Python) |