On 07/25/2014 09:54 AM, Daniele E. Domenichelli wrote: >> Some projects also arrange their layout within the build tree to look >> like the install tree by setting CMAKE_RUNTIME_OUTPUT_DIRECTORY[_<CONFIG>] >> and related variables appropriately. > > That's exactly what I would like to be able to do, but for "data files" > as well, and at the moment that is possible, but not in an easy way.
Okay, that clarifies things. The proposal in 15035 makes more sense now. FYI, CMake solves this problem for locating its own resources when running in the build tree by looking for a file relative to the executable whose content tells it where to find the resources directly out of the source tree: http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmSystemTools.cxx;hb=v3.0.0#l2187 -Brad -- 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://public.kitware.com/mailman/listinfo/cmake-developers