On 06/13/2012 12:13 PM, Daniel Dekkers wrote: > Somewhat related... > > We now have the resources excluded from the build but visible in the IDE. So > far so good. > But we also want to copy them (all) to the build directory. > We have a post build command that does that. > But if you only change the contents of one of the resource files, a rebuild > is not invoked (exclude from build) and so the files are not copied. > For another project we made specific targets (ADD_CUSTOM_TARGET) just to > handle the copying but that gives a lot of extra subprojects in the IDE. > Is there another way to achieve this? > > Thanks, > Daniel
You can use configure_file with COPYONLY in the CMakeLists.txt files, but then, you'll have to reconfigure every time one of them changes. Michael -- 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