Skip to content
Snippets Groups Projects
Commit e9878081 authored by Tully Foote's avatar Tully Foote
Browse files

add an explicit dependency on generated files in CMake

This will make sure that the generated headers are build before they are compiled.
parent 9b5d9435
No related branches found
No related tags found
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment