Skip to content

Commit

Permalink
CMakeLists.txt: add component. Don't set "CPACK_RESOURCE_FILE_COPYING…
Browse files Browse the repository at this point in the history
…", it's not a CPACK variable. Add some newlines here and there.
  • Loading branch information
laurence-myers committed Apr 5, 2022
1 parent 2033769 commit 3d4d80f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,31 +62,43 @@ add_executable(flspo main.cpp read.cpp read.h common.h write.cpp write.h error.h

###################
# Link dependencies

target_link_libraries(flspo nowide)

################
# Package as zip

set(CPACK_RESOURCE_FILE_COPYING "${CMAKE_SOURCE_DIR}/COPYING")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
install(
FILES
${CPACK_RESOURCE_FILE_COPYING}
"${CMAKE_SOURCE_DIR}/COPYING"
${CPACK_RESOURCE_FILE_LICENSE}
${CPACK_RESOURCE_FILE_README}
DESTINATION
.
)

include(CPackComponent)
cpack_add_component(
flspo
DISPLAY_NAME "FL Studio Plugin Organizer"
REQUIRED
)

install(
TARGETS
flspo
RUNTIME
DESTINATION
.
COMPONENT
flspo
)

set(CPACK_BINARY_NSIS "OFF")
set(CPACK_BINARY_ZIP "ON")
set(CPACK_PACKAGE_NAME "flspo")
set(CPACK_PACKAGE_VENDOR "Laurence Dougal Myers")

include(CPack)

0 comments on commit 3d4d80f

Please sign in to comment.