From c06cc09497fd9f99a36f7fe524ed51604dbc60c5 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 10 Jul 2024 15:18:48 +0800 Subject: Include readme and license in release files (#4595) --- CMakeLists.txt | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e50ae7c1..5e9530adb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -551,15 +551,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 # @@ -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) -- cgit v1.2.3