Skip to content

Commit

Permalink
Check if VTK is found before building pcl_converter and davidsdk_grabber
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorLamoine committed Apr 7, 2016
1 parent 62561c4 commit 5f63c6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion io/CMakeLists.txt
Expand Up @@ -130,7 +130,7 @@ if(build)
)
endif()

if(WITH_DAVIDSDK)
if(WITH_DAVIDSDK AND VTK_FOUND) # VTK is mandatory for OBJ/PLY/STL input/output
set(DAVIDSDK_GRABBER_INCLUDES
include/pcl/io/davidsdk_grabber.h
)
Expand Down
6 changes: 4 additions & 2 deletions io/tools/CMakeLists.txt
Expand Up @@ -13,10 +13,12 @@ endif()
PCL_ADD_EXECUTABLE(pcl_pcd_convert_NaN_nan ${SUBSYS_NAME} pcd_convert_NaN_nan.cpp)
PCL_ADD_EXECUTABLE(pcl_pcd_introduce_nan ${SUBSYS_NAME} pcd_introduce_nan.cpp)
PCL_ADD_EXECUTABLE(pcl_convert_pcd_ascii_binary ${SUBSYS_NAME} convert_pcd_ascii_binary.cpp)
PCL_ADD_EXECUTABLE(pcl_converter ${SUBSYS_NAME} converter.cpp)
if (VTK_FOUND)
PCL_ADD_EXECUTABLE(pcl_converter ${SUBSYS_NAME} converter.cpp)
target_link_libraries(pcl_converter pcl_common pcl_io)
endif ()
PCL_ADD_EXECUTABLE(pcl_hdl_grabber ${SUBSYS_NAME} hdl_grabber_example.cpp)
target_link_libraries(pcl_convert_pcd_ascii_binary pcl_common pcl_io)
target_link_libraries(pcl_converter pcl_common pcl_io)
target_link_libraries(pcl_hdl_grabber pcl_common pcl_io)
target_link_libraries(pcl_pcd_introduce_nan pcl_common pcl_io)

Expand Down

0 comments on commit 5f63c6c

Please sign in to comment.