Collection of utility functions/macros
Add this repository as submodule of a host repository and,
- Add the directory to CMAKE_MODULE_PATH in a CMakeLists.txt of a host repository.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}:path/to/cmakeutils)
include(dbgutils.cmake)
- Or include files with path to submodule.
include(path/to/cmakeutils/dbgutils.cmake)
Print all properties set on a entity.
Print all buildsystem target under [dir]
Install multiple targets in standard directories and export it as exportID.
Export targets specified by exportID as '{Prefix}{exportID}Targets.cmake'. A list of resulting filenames is set on resVar variable.
installTargetAs() + exportTargetFile(). For each target, this macro adds alias library targets as NS::target.
Install '{_PKGNAME}Config.cmake' and '{_PKGNAME}ConfigVersion.cmake'. '{_PKGNAME}Config.cmake' will be filled with simple content: including targetFiles beside it.
Copy files specified in target properties to standard destination directories.