diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e50ae7c1..5e9530adb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -552,15 +552,6 @@ if(SLANG_ENABLE_GFX) endif() # -# Installing any documentation -# - -file(GLOB_RECURSE docs CONFIGURE_DEPENDS docs/*.md) -if(docs) - install(FILES ${docs} DESTINATION ${CMAKE_INSTALL_DOCDIR}) -endif() - -# # The test executables and runtime-loaded modules # if(SLANG_ENABLE_TESTS AND SLANG_ENABLE_GFX AND SLANG_ENABLE_SLANGD AND SLANG_ENABLE_SLANGRT) @@ -796,4 +787,18 @@ endif() # # Packaging # +set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) +set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON) +install(FILES + "${slang_SOURCE_DIR}/README.md" + "${slang_SOURCE_DIR}/LICENSE" + DESTINATION . + COMPONENT metadata + EXCLUDE_FROM_ALL +) +install(DIRECTORY + "${slang_SOURCE_DIR}/docs/" + DESTINATION share/doc/slang +) + include(CPack) |
