On 01/10/2014 11:21 AM, Martin Zenzes wrote:
The problem: At the time the add_library() is processed by cmake, the
referenced *.cpp/*.hpp files are not yet created, hence they are not
found ("Cannot find source file"). Adding the generate-target to ALL
does not help, as at the target is executed to create the file _after_
the add_library() call is processed.
Any hints?
I think against the "Cannot find source file" problem it would help to
set the "GENERATED" source file property.
add_dependencies(mylibrary mycustomtarget) should make sure they are
build in the right order.
Nils
--
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