Commit 57765154 authored by haoshuang's avatar haoshuang

fix compile bugs

parent be37e4e9
...@@ -15,12 +15,15 @@ SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall") ...@@ -15,12 +15,15 @@ SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
set(JFX_COMMON_LIBS_PATH ${PROJECT_SOURCE_DIR}/../jfx_common_libs) set(JFX_COMMON_LIBS_PATH ${PROJECT_SOURCE_DIR}/../jfx_common_libs)
find_package(VTK 8.2 REQUIRED)
set(VTK_DIR "/usr/local/lib/cmake/vtk-8.2" CACHE PATH "VTK directory override" FORCE)
find_package(Eigen3 REQUIRED) find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIRS}) include_directories(${EIGEN3_INCLUDE_DIRS})
find_package(PCL 1.10 EXACT REQUIRED ) find_package(PCL 1.10 EXACT REQUIRED )
set(PCL_INCLUDE_DIRS /usr/include/pcl-1.10) set(PCL_INCLUDE_DIRS /usr/local/include/pcl-1.10)
file(GLOB PCL_LIBRARIES /usr/lib/aarch64-linux-gnu/libpcl_*) file(GLOB PCL_LIBRARIES /usr/local/lib/libpcl_*)
add_definitions(${PCL_DEFINITIONS}) add_definitions(${PCL_DEFINITIONS})
if(NOT PCL_FOUND) if(NOT PCL_FOUND)
message(STATUS "JFX_XXXXXXXXXXXX:PCL_NOTFOUND") message(STATUS "JFX_XXXXXXXXXXXX:PCL_NOTFOUND")
...@@ -226,8 +229,8 @@ target_link_libraries(${PROJECT_NAME}_node ...@@ -226,8 +229,8 @@ target_link_libraries(${PROJECT_NAME}_node
yaml-cpp yaml-cpp
) )
target_link_libraries(${PROJECT_NAME}_node yaml-cpp -lpcl_filters ) target_link_libraries(${PROJECT_NAME}_node yaml-cpp -lpcl_filters ${VTK_LIBRARIES})
target_link_libraries(${PROJECT_NAME}_node ${PCL_LIBRARIES}) target_link_libraries(${PROJECT_NAME}_node ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_LIBRARIES})
if(KF_CUDA) if(KF_CUDA)
target_link_libraries(${PROJECT_NAME}_node kf_cuda) target_link_libraries(${PROJECT_NAME}_node kf_cuda)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment