Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use target_link_directories #2

Merged
merged 1 commit into from
Nov 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions c /interpolation_data_collection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 66,18 @@ if( PCAP_FOUND OR Boost_FOUND OR PCL_FOUND )
# add_definitions( -DHAVE_FAST_PCAP ) # Disable sleep while reading a pcap

# Additional Library Directories
link_directories( ${Boost_LIBRARY_DIRS} )
link_directories( ${OpenCV_LIB_DIR} )
link_directories( ${PCL_LIBRARY_DIRS} )
target_link_directories( interpolation_vlp
PUBLIC ${Boost_LIBRARY_DIRS}
${OpenCV_LIB_DIR}
${PCL_LIBRARY_DIRS} )

# Additional Dependencies
target_link_libraries( interpolation_vlp ${CMAKE_THREAD_LIBS_INIT} )
target_link_libraries( interpolation_vlp ${Boost_LIBRARIES} )
target_link_libraries( interpolation_vlp ${PCAP_LIBRARIES} )
target_link_libraries( interpolation_vlp ${OpenCV_LIBS} )
target_link_libraries(interpolation_vlp ${PCL_LIBRARIES})
target_link_libraries( interpolation_vlp ${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
${PCAP_LIBRARIES}
${OpenCV_LIBS}
${PCL_LIBRARIES})

else()
message( WARNING "VelodyneCapture need at least either Boost or PCAP." )
endif()
endif()