Hello;<br><br>I have a quite large CMake project consisting of many libraries and executable programs. Schematically my codebase is organised as:<br><br><br><br>root/CMakeLists.txt<br>root/package1/CMakeLists.txt<br>root/package1/lib/CMakeLists.txt<br>
root/package1/app/CMakeLists.txt<br>root/package2/CMakeLists.txt<br>
root/package2/lib/CMakeLists.txt<br>
root/package2/app/CMakeLists.txt<br>
....<br><br>The CMakeLists.txt files in each of the lib directories contain<br><br>add_library( pack1 ...)<br><br>And in the app directories there are<br><br>add_executable(app1 ...)<br>add_executable(app2 ...)<br><br>Now I would like to be able to install a group of libraries / executables as e.g.<br>
<br>make install package2<br><br>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?<br>
<br>Any tips?<br><br>Joakim<br><br><br><br>