On 16.07.2014 15:08, Thibault Hild wrote:
Hello,
I'm quite new to CMake and after experimenting a bit, I am currently
considering a way to express RPM dependencies in subdirectories
instead of specifying them at the top level.
After googling a bit, I did not find something that fulfills my
expectations but I have probably missed a post or something in the
CPack documentation. If you already know of a discussion thread or
explanation on this particular subject, can you please redirect me to it ?
For DEB I used custom function()s to maintain a custom GLOBAL property
(set_property(), get_property()).
The custom function I used to append dependencies to the property would
check if the dependency already exists.
If it existed with the same version requirement it would be ignored; if
the version differed I threw an error.
Somewhere at the end of my root CMakeLists.txt (but before
include(CPack)) I added a call to my second custom function which would
set the appropriate CPACK_ variable (with PARENT_SCOPE) based on the
content of the GLOBAL property.
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://public.kitware.com/mailman/listinfo/cmake