Skip to content

Commit f241192

Browse files
committed
Add make dist target
Now we can attach source tarballs to GitHub releases, this target will create them.
1 parent 43f2f2d commit f241192

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ set(SDDM_VERSION_MINOR 11)
1818
set(SDDM_VERSION_PATCH 0)
1919
set(SDDM_VERSION_STRING "${SDDM_VERSION_MAJOR}.${SDDM_VERSION_MINOR}.${SDDM_VERSION_PATCH}")
2020

21+
# Set up packaging
22+
set(CPACK_PACKAGE_NAME "sddm")
23+
set(CPACK_PACKAGE_VERSION "${SDDM_VERSION_STRING}")
24+
set(CPACK_GENERATOR "TGZ")
25+
set(CPACK_SET_DESTDIR FALSE)
26+
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
27+
set(CPACK_SOURCE_IGNORE_FILES "/build/;/.git;/*.user;/.tx/;~$;${CPACK_SOURCE_IGNORE_FILES}")
28+
include(CPack)
29+
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
30+
2131
# Options
2232
option(BUILD_MAN_PAGES "Build man pages" OFF)
2333
option(ENABLE_JOURNALD "Enable logging to journald" ON)

0 commit comments

Comments
 (0)