Skip to content
Snippets Groups Projects
Commit a76ff5c3 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

Add PCL to CMake files

parent 5f8cb8f4
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
...@@ -21,8 +21,11 @@ find_package( Threads REQUIRED ) ...@@ -21,8 +21,11 @@ find_package( Threads REQUIRED )
find_package( URIParser REQUIRED ) find_package( URIParser REQUIRED )
find_package( MsgPack REQUIRED ) find_package( MsgPack REQUIRED )
find_package( LibSGM ) find_package( LibSGM )
find_package( PCL )
#find_package( ZLIB REQUIRED ) #find_package( ZLIB REQUIRED )
set(CMAKE_CXX_STANDARD 17) # For PCL/VTK https://github.com/PointCloudLibrary/pcl/issues/2686
# Readline library is not required on Windows # Readline library is not required on Windows
# May also entirely remove dependence on this... it should be optional at least. # May also entirely remove dependence on this... it should be optional at least.
if (NOT WIN32) if (NOT WIN32)
......
...@@ -46,7 +46,11 @@ if (CUDA_FOUND) ...@@ -46,7 +46,11 @@ if (CUDA_FOUND)
set_property(TARGET ftl-vision PROPERTY CUDA_SEPARABLE_COMPILATION ON) set_property(TARGET ftl-vision PROPERTY CUDA_SEPARABLE_COMPILATION ON)
endif() endif()
# TODO: move PCL stuff elsewhere
target_include_directories(ftl-vision PUBLIC ${PCL_INCLUDE_DIRS})
target_compile_definitions(ftl-vision PUBLIC ${PCL_DEFINITIONS})
#target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include) #target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_link_libraries(ftl-vision ftlcommon ftlrender Threads::Threads libelas ${OpenCV_LIBS} ${LIBSGM_LIBRARIES} ${CUDA_LIBRARIES} glog::glog ftlnet) target_link_libraries(ftl-vision ftlcommon ftlrender Threads::Threads libelas ${OpenCV_LIBS} ${LIBSGM_LIBRARIES} ${CUDA_LIBRARIES} glog::glog ftlnet ${PCL_LIBRARIES})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment