CMakeLists.txt 769 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. cmake_minimum_required(VERSION 2.8.3)
  2. project(triangle_measure)
  3. ## Compile as C++11, supported in ROS Kinetic and newer
  4. add_compile_options(-std=c++11)
  5. find_package(Eigen3 REQUIRED)
  6. FIND_PACKAGE(OpenCV REQUIRED)
  7. FIND_PACKAGE(Ceres REQUIRED)
  8. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--no-as-needed")
  9. set(CMAKE_BUILD_TYPE "RELEASE")
  10. include_directories(
  11. /usr/include
  12. PnP
  13. StripCenter
  14. {EIGEN3_INCLUDE_DIR}
  15. ${CERES_INCLUDE_DIRS}
  16. ${OpenCV_INCLUDE_DIRS}
  17. )
  18. link_directories("/usr/local/lib")
  19. add_executable( triangle_measure main.cpp StripCenter/Steger.cpp PnP/pnp.cpp Interpolator.cpp)
  20. target_link_libraries( triangle_measure
  21. ${OpenCV_LIBS}
  22. )
  23. add_executable( caliber camera_calib/caliber.cpp)
  24. target_link_libraries( caliber
  25. ${OpenCV_LIBS}
  26. )