ktossell/libuvc_ros — pull request #5 by tfoote (2013-09-23 07:13:07+00:00)
Title: add an explicit dependency on generated files in CMake

This will make sure that the generated headers are build before they are compiled which is currently a race condition.

This fixes the error shown here: http://jenkins.ros.org/view/HbinP32/job/ros-hydro-libuvc-camera_binarydeb_precise_i386/25/console

```
[ 20%] Building CXX object CMakeFiles/camera_node.dir/src/main.cpp.o
/usr/lib/ccache/c++ -DROS_PACKAGE_NAME=\"libuvc_camera\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -I/tmp/buildd/ros-hydro-libuvc-camera-0.0.2-2precise-20130923-0631/obj-i686-linux-gnu/devel/include -I/tmp/buildd/ros-hydro-libuvc-camera-0.0.2-2precise-20130923-0631/include -I/opt/ros/hydro/include -o CMakeFiles/camera_node.dir/src/main.cpp.o -c /tmp/buildd/ros-hydro-libuvc-camera-0.0.2-2precise-20130923-0631/src/main.cpp
In file included from /tmp/buildd/ros-hydro-libuvc-camera-0.0.2-2precise-20130923-0631/src/main.cpp:36:0:
/tmp/buildd/ros-hydro-libuvc-camera-0.0.2-2precise-20130923-0631/include/libuvc_camera/camera_driver.h:12:43: fatal error: libuvc_camera/UVCCameraConfig.h: No such file or directory
compilation terminated.
```