Hello; I have a quite large CMake project consisting of many libraries and executable programs. Schematically my codebase is organised as:
root/CMakeLists.txt root/package1/CMakeLists.txt root/package1/lib/CMakeLists.txt root/package1/app/CMakeLists.txt root/package2/CMakeLists.txt root/package2/lib/CMakeLists.txt root/package2/app/CMakeLists.txt .... The CMakeLists.txt files in each of the lib directories contain add_library( pack1 ...) And in the app directories there are add_executable(app1 ...) add_executable(app2 ...) Now I would like to be able to install a group of libraries / executables as e.g. make install package2 To install all the libraries and binaries under the package2/ subdirectory. The documentation says that something like this should be possible through the use of COMPONENTS - but just how is less than clear for me? Any tips? Joakim
-- 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