Skip to content

Commit 3d4d80f

Browse files
CMakeLists.txt: add component. Don't set "CPACK_RESOURCE_FILE_COPYING", it's not a CPACK variable. Add some newlines here and there.
1 parent 2033769 commit 3d4d80f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

CMakeLists.txt

+14-2
Original file line numberDiff line numberDiff line change
@@ -62,31 +62,43 @@ add_executable(flspo main.cpp read.cpp read.h common.h write.cpp write.h error.h
6262

6363
###################
6464
# Link dependencies
65+
6566
target_link_libraries(flspo nowide)
6667

6768
################
6869
# Package as zip
6970

70-
set(CPACK_RESOURCE_FILE_COPYING "${CMAKE_SOURCE_DIR}/COPYING")
7171
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
7272
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
7373
install(
7474
FILES
75-
${CPACK_RESOURCE_FILE_COPYING}
75+
"${CMAKE_SOURCE_DIR}/COPYING"
7676
${CPACK_RESOURCE_FILE_LICENSE}
7777
${CPACK_RESOURCE_FILE_README}
7878
DESTINATION
7979
.
8080
)
81+
82+
include(CPackComponent)
83+
cpack_add_component(
84+
flspo
85+
DISPLAY_NAME "FL Studio Plugin Organizer"
86+
REQUIRED
87+
)
88+
8189
install(
8290
TARGETS
8391
flspo
8492
RUNTIME
8593
DESTINATION
8694
.
95+
COMPONENT
96+
flspo
8797
)
98+
8899
set(CPACK_BINARY_NSIS "OFF")
89100
set(CPACK_BINARY_ZIP "ON")
90101
set(CPACK_PACKAGE_NAME "flspo")
91102
set(CPACK_PACKAGE_VENDOR "Laurence Dougal Myers")
103+
92104
include(CPack)

0 commit comments

Comments
 (0)