September 2018
Intermediate to advanced
606 pages
14h 32m
English
This recipe will build a simple executable linking against the message library. The layout of the project is as follows:
├── cmake│ ├── install_hook.cmake.in│ └── print_rpath.py├── CMakeLists.txt├── external│ └── upstream│ ├── CMakeLists.txt│ └── message│ └── CMakeLists.txt└── src ├── CMakeLists.txt └── use_message.cpp
The main CMakeLists.txt file coordinates the superbuild. The external subdirectory contains CMake instructions to handle the dependencies. The cmake subdirectory contains a Python script and a template CMake script. These will be used to fine-tune the installation, the CMake script being first configured and then executed to call the Python script to print the RPATH for the installed use_message executable:
Read now
Unlock full access