In our project we are generating code from CORBA IDL files by adding a
custom command that generates C++ code from the IDL files and a library
target that depends on the generated output. This works as expected,
however IDL supports include directives which are (naturally) not picked up
as dependencies by CMake. To give an example:

a.idl:
--------------------
#include "b.idl"
#include "c.idl"
---------------------

Here the file a.idl file includes b.idl and c.idl. The file a.idl is given
as input to the custom command that processes IDL files into C++, but if I
change b.idl or c.idl then the target is not rebuilt. Is it possible to add
b.idl and c.idl as explicit dependencies in some way so that my target is
rebuilt if these files change? I've made various attempts with
add_custom_target() and add_dependencies() as well as
set_source_files_properties() without any luck.

Regards,
--
Tarjei
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to