1234567891011121314151617181920212223242526272829303132333435363738 |
- cmake_minimum_required(VERSION 2.8.3)
- project(triangle_measure)
- ## Compile as C++11, supported in ROS Kinetic and newer
- add_compile_options(-std=c++11)
- find_package(Eigen3 REQUIRED)
- FIND_PACKAGE(OpenCV REQUIRED)
- FIND_PACKAGE(Ceres REQUIRED)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--no-as-needed")
- set(CMAKE_BUILD_TYPE "RELEASE")
- include_directories(
- /usr/include
- PnP
- StripCenter
- {EIGEN3_INCLUDE_DIR}
- ${CERES_INCLUDE_DIRS}
- ${OpenCV_INCLUDE_DIRS}
- )
- link_directories("/usr/local/lib")
- add_executable( triangle_measure main.cpp StripCenter/Steger.cpp PnP/pnp.cpp Interpolator.cpp)
- target_link_libraries( triangle_measure
- ${OpenCV_LIBS}
- )
- add_executable( caliber camera_calib/caliber.cpp)
- target_link_libraries( caliber
- ${OpenCV_LIBS}
- )
|