Commit 7ac963eb authored by ktossell's avatar ktossell
Browse files

Merge pull request #5 from tfoote/master

add an explicit dependency on generated files in CMake
parents 9b5d9435 e9878081
......@@ -28,10 +28,12 @@ include_directories(${Boost_INCLUDE_DIRS})
add_executable(camera_node src/main.cpp src/camera_driver.cpp)
target_link_libraries(camera_node ${Boost_LIBRARIES} ${catkin_LIBRARIES} ${libuvc_LIBRARIES})
add_dependencies(camera_node ${PROJECT_NAME}_gencfg)
add_library(libuvc_camera_nodelet src/nodelet.cpp src/camera_driver.cpp)
add_dependencies(libuvc_camera_nodelet ${libuvc_camera_EXPORTED_TARGETS})
target_link_libraries(libuvc_camera_nodelet ${Boost_LIBRARIES} ${catkin_LIBRARIES} ${libuvc_LIBRARIES})
add_dependencies(camera_nodelet ${PROJECT_NAME}_gencfg)
install(TARGETS camera_node libuvc_camera_nodelet
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
......
Supports Markdown
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