Skip to content

Commit

Permalink
Merge pull request #2 from vetlesillerud/fix-cmakeIVLP
Browse files Browse the repository at this point in the history
use target_link_directories
  • Loading branch information
FredrikJohanssen authored Nov 1, 2019
2 parents 6038dbf 30e689a commit 6cfc13f
Showing 1 changed file with 10 additions and 9 deletions.
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()

0 comments on commit 6cfc13f

Please sign in to comment.