File tree 2 files changed +20
-22
lines changed
2 files changed +20
-22
lines changed Original file line number Diff line number Diff line change @@ -553,15 +553,6 @@ if(SLANG_ENABLE_GFX)
553
553
)
554
554
endif ()
555
555
556
- #
557
- # Installing any documentation
558
- #
559
-
560
- file (GLOB_RECURSE docs CONFIGURE_DEPENDS docs/*.md )
561
- if (docs)
562
- install (FILES ${docs} DESTINATION ${CMAKE_INSTALL_DOCDIR} )
563
- endif ()
564
-
565
556
#
566
557
# The test executables and runtime-loaded modules
567
558
#
@@ -798,4 +789,18 @@ endif()
798
789
#
799
790
# Packaging
800
791
#
792
+ set (CPACK_ARCHIVE_COMPONENT_INSTALL ON )
793
+ set (CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON )
794
+ install (FILES
795
+ "${slang_SOURCE_DIR} /README.md"
796
+ "${slang_SOURCE_DIR} /LICENSE"
797
+ DESTINATION .
798
+ COMPONENT metadata
799
+ EXCLUDE_FROM_ALL
800
+ )
801
+ install (DIRECTORY
802
+ "${slang_SOURCE_DIR} /docs/"
803
+ DESTINATION share/doc /slang
804
+ )
805
+
801
806
include (CPack)
Original file line number Diff line number Diff line change 34
34
"description" : " Visual Studio 2022 project" ,
35
35
"generator" : " Visual Studio 17 2022"
36
36
},
37
- {
38
- "name" : " single-component" ,
39
- "inherits" : " default" ,
40
- "description" : " configure to package a single component" ,
41
- "cacheVariables" : {
42
- "CPACK_ARCHIVE_COMPONENT_INSTALL" : " ON"
43
- }
44
- },
45
37
{
46
38
"name" : " slang-llvm" ,
47
- "inherits" : " single-component " ,
39
+ "inherits" : " default " ,
48
40
"description" : " Build slang-llvm from the system LLVM" ,
49
41
"cacheVariables" : {
50
42
"SLANG_SLANG_LLVM_FLAVOR" : " USE_SYSTEM_LLVM"
65
57
{
66
58
"name" : " generators" ,
67
59
"inherits" : " release" ,
68
- "configurePreset" : " single-component " ,
60
+ "configurePreset" : " default " ,
69
61
"targets" : [
70
62
" all-generators"
71
63
]
88
80
" ZIP"
89
81
],
90
82
"variables" : {
91
- "CPACK_PACKAGE_FILE_NAME" : " slang"
83
+ "CPACK_PACKAGE_FILE_NAME" : " slang" ,
84
+ "CPACK_COMPONENTS_ALL" : " Unspecified;metadata"
92
85
}
93
86
},
94
87
{
110
103
{
111
104
"name" : " generators" ,
112
105
"inherits" : " release" ,
113
- "configurePreset" : " single-component " ,
106
+ "configurePreset" : " default " ,
114
107
"variables" : {
115
108
"CPACK_COMPONENTS_ALL" : " generators"
116
109
}
164
157
"steps" : [
165
158
{
166
159
"type" : " configure" ,
167
- "name" : " single-component "
160
+ "name" : " default "
168
161
},
169
162
{
170
163
"type" : " build" ,
You can’t perform that action at this time.
0 commit comments