Hi. I've got the following problem:
I've got a CMake Project with the following directory structure: project/src project/include project/resources In the directory project/resources/ is a file res.gen. I have a command that generates res.cpp and res.h files from it. I want the .cpp files to be compiled and linked to the library generated by CMake with the other source files. I want the header files to be available such that my project can include them (so they need to be generated before compilation). I also need a target that installs the header files into the proper install directory. It should be possible to do this as out of source build, such that the generated files are not copied to the project/src and project/include directory. If the res.cpp file changes, the generation command should be invoked again. Basically before building the project, the script should generate the resource files if needed and than build the project as if the generated files are in project/src, project/include. What would be the correct approach for this? Thanks ahead Toralf Niebuhr _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
