CMakeLists.txt
944 Bytes
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(Capstone)
set(CMAKE_BUILD_TYPE Release)
add_compile_options(-std=c++11)
find_package(PCL 1.7 REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
find_package(Boost COMPONENTS program_options filesystem REQUIRED)
include_directories(
include
${Boost_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
set(sources
)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable(cloud src/pointcloud.cpp ${sources})
target_link_libraries(cloud ${PCL_LIBRARIES} ${OpenCV_LIBS} ${Boost_LIBRARIES})
add_executable(mesh src/mesh.cpp ${sources})
target_link_libraries(mesh ${PCL_LIBRARIES} ${OpenCV_LIBS})
add_executable(obj src/obj.cpp ${sources})
target_link_libraries(obj ${PCL_LIBRARIES} ${OpenCV_LIBS})
add_executable(densedepth src/densedepth.cpp ${sources})
target_link_libraries(densedepth ${PCL_LIBRARIES} ${OpenCV_LIBS})