[CMake] Fwd: How to get the list of files that will be installed when installing a CMake component
Daniel Schepler
dschepler at scalable-networks.com
Wed Oct 1 12:08:37 EDT 2014
What about checking install_manifest.txt after running the cmake command?
Or, if you have multiple components to package in this way, possibly you could use a different CMAKE_INSTALL_PREFIX for each component. Then, either have the installer generator use those directories for packing the installer components, or use some scripting to combine the component installations into a final image directory for the installer generator to read from.
--
Daniel
From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Dattu koneru
Sent: Wednesday, October 01, 2014 1:10 AM
To: cmake at cmake.org
Subject: [CMake] Fwd: How to get the list of files that will be installed when installing a CMake component
Hi ,
Is there any way to know programmatically ( in cmake ) what files will be installed if a COMPONENT is installed ( something like a get_property of component)?
Currently I am installing a COMPONENT to a temporary location for packaging ( not using CPack for packaging ) and then packaging using custom commands. Invoking the following command during packaing in Cmake.
cmake -DCOMPONENT=my_test_component
-DCMAKE_INSTALL_PREFIX=${TMP_PACKAGING_ROOT}
-P ${CMAKE_BINARY_DIR}/cmake_install.cmake
I wanted to know if it is possible to get the list of files so that I can only include those files explicitly in the package ? or possibly add them as outputs to the custom command ?
( I tried asking in StackOverflow but no success )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141001/615f1c28/attachment-0001.html>
More information about the CMake
mailing list