aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2018-01-15 12:03:24 +0100
committerSergio Martins <smartins@kde.org>2018-01-21 22:34:01 +0000
commitd890f679a7778ab529a792137fafa33b879f5a74 (patch)
treeb5fc7f05c4f45ba48bc4f0cf5140ebbc090dd460
parentb360ccb99bc839a2020a4ee232f43039f81d729a (diff)
Support CPack
Patch from https://github.com/KDE/clazy/pull/16 Commit had an invalid e-mail which is rejected by kde hooks, so commited with my address.
-rw-r--r--.gitignore2
-rw-r--r--CMakeLists.txt5
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 1c932810..d59b1b7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,3 +28,5 @@ output.log
clazy.1
/dev-scripts/*.log
clanglazy_export.h
+CPackConfig.cmake
+CPackSourceConfig.cmake
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ac7bfd58..6f229861 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -259,6 +259,11 @@ if (NOT CLAZY_BUILD_WITH_CLANG)
link_to_llvm(clazy-standalone "${CLAZY_STANDALONE_LLVM_LIBS}")
install(TARGETS clazy-standalone DESTINATION bin PERMISSIONS OWNER_WRITE OWNER_EXECUTE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE)
+
+ set(CPACK_PACKAGE_VERSION_MAJOR ${CLAZY_VERSION_MAJOR})
+ set(CPACK_PACKAGE_VERSION_MINOR ${CLAZY_VERSION_MINOR})
+ set(CPACK_PACKAGE_VERSION_PATCH ${CLAZY_VERSION_PATCH})
+ include(CPack)
else()
set(LLVM_LINK_COMPONENTS
Support