From 07434c5b4da2df6d88be1d42287862270cabb941 Mon Sep 17 00:00:00 2001 From: Petr Bena Date: Sun, 25 May 2014 17:04:43 +0200 Subject: [PATCH] cpack things --- stikkit/CMakeLists.txt | 8 +++++++- stikkit/License.txt | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 stikkit/License.txt diff --git a/stikkit/CMakeLists.txt b/stikkit/CMakeLists.txt index 18e7299..4dcc2cc 100644 --- a/stikkit/CMakeLists.txt +++ b/stikkit/CMakeLists.txt @@ -9,4 +9,10 @@ find_package(CURL) target_link_libraries(stikkit ${CURL_LIBRARIES}) install (TARGETS stikkit DESTINATION bin) - +# build a CPack driven installer package +include (InstallRequiredSystemLibraries) +set (CPACK_RESOURCE_FILE_LICENSE + "${CMAKE_CURRENT_SOURCE_DIR}/License.txt") +set (CPACK_PACKAGE_VERSION_MAJOR "1") +set (CPACK_PACKAGE_VERSION_MINOR "0") +include (CPack) diff --git a/stikkit/License.txt b/stikkit/License.txt new file mode 100644 index 0000000..144ae97 --- /dev/null +++ b/stikkit/License.txt @@ -0,0 +1 @@ +See GNU gpl