diff options
author | João Valverde <j@v6e.pt> | 2023-01-18 00:46:21 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2023-01-18 03:35:13 +0000 |
commit | fe7bfdf6caac9204ab5f34eeba7b0f4a0314d3cd (patch) | |
tree | 135f1addfb0bd60441095b6122fc40fce4909115 /wsutil | |
parent | 728073ade057f5376f6b984115a962e8e812264b (diff) |
CMake: Require explicit installation of development headers
Develpment headers are a sizeable part of the binary installation
and most users won't ever require them. It's recommended to package
them separately in a devel package or SDK.
Create a CMake installation component for development headers
and add the EXCLUDE_FROM_ALL property.
Headers can be installed using the invocation:
cmake --install <dir> --component Development
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/CMakeLists.txt | 2 | ||||
-rw-r--r-- | wsutil/wmem/CMakeLists.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt index 420ae5c179..53002eaa4d 100644 --- a/wsutil/CMakeLists.txt +++ b/wsutil/CMakeLists.txt @@ -342,6 +342,8 @@ set_target_properties(test_wsutil PROPERTIES install(FILES ${WSUTIL_PUBLIC_HEADERS} DESTINATION "${PROJECT_INSTALL_INCLUDEDIR}/wsutil" + COMPONENT "Development" + EXCLUDE_FROM_ALL ) CHECKAPI( diff --git a/wsutil/wmem/CMakeLists.txt b/wsutil/wmem/CMakeLists.txt index 7393b39f17..25909a4fa2 100644 --- a/wsutil/wmem/CMakeLists.txt +++ b/wsutil/wmem/CMakeLists.txt @@ -94,6 +94,8 @@ set_target_properties(wmem_test PROPERTIES install(FILES ${WMEM_PUBLIC_HEADERS} DESTINATION "${PROJECT_INSTALL_INCLUDEDIR}/wsutil/wmem" + COMPONENT "Development" + EXCLUDE_FROM_ALL ) CHECKAPI( |