mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 00:09:01 +08:00
21 lines
920 B
Diff
21 lines
920 B
Diff
|
diff --git a/io/CMakeLists.txt b/io/CMakeLists.txt
|
||
|
index a17cb2d..b2a56b3 100644
|
||
|
--- a/io/CMakeLists.txt
|
||
|
+++ b/io/CMakeLists.txt
|
||
|
@@ -330,11 +330,13 @@ if(build)
|
||
|
add_definitions(${VTK_DEFINES})
|
||
|
PCL_ADD_LIBRARY("${LIB_NAME}" "${SUBSYS_NAME}" ${srcs} ${incs} ${compression_incs} ${impl_incs} ${OPENNI_INCLUDES} ${OPENNI2_INCLUDES})
|
||
|
target_include_directories(${LIB_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" ${VTK_INCLUDE_DIRECTORIES})
|
||
|
- link_directories(${VTK_LINK_DIRECTORIES})
|
||
|
- target_link_libraries("${LIB_NAME}" pcl_common pcl_io_ply ${VTK_LIBRARIES} )
|
||
|
+
|
||
|
if(PNG_FOUND)
|
||
|
target_link_libraries("${LIB_NAME}" ${PNG_LIBRARIES})
|
||
|
endif(PNG_FOUND)
|
||
|
+
|
||
|
+ link_directories(${VTK_LINK_DIRECTORIES})
|
||
|
+ target_link_libraries("${LIB_NAME}" pcl_common pcl_io_ply ${VTK_LIBRARIES} )
|
||
|
|
||
|
if(LIBUSB_1_FOUND)
|
||
|
target_link_libraries("${LIB_NAME}" ${LIBUSB_1_LIBRARIES})
|