From a5a476ebcae52932c7435cbf6ac015649c7e0618 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Mon, 12 Apr 2010 19:21:14 +0000 Subject: [PATCH] Cutecash: Add install and packaging rules. Running "make package" will produce a binary package. Running "make package_source" will produce a source package. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19020 57a11ea4-9604-0410-9ed3-97b8803252fd --- CMakeLists.txt | 20 ++++++++++++++++++++ src/gnc/CMakeLists.txt | 2 ++ 2 files changed, 22 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ad9bba6b2..ca8c569de9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,3 +119,23 @@ ENDIF (MINGW) # The subdirectories ADD_SUBDIRECTORY (src) + + +# ############################################################ +# Package creation rules + +SET (CPACK_PACKAGE_NAME "Cutecash") +SET (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Cutecash Free Finance Software") +SET (CPACK_PACKAGE_VENDOR "Christian Stimming") +SET (CPACK_PACKAGE_VERSION_MAJOR "0") +SET (CPACK_PACKAGE_VERSION_MINOR "1") +SET (CPACK_PACKAGE_VERSION_PATCH "0") +SET (CPACK_SOURCE_IGNORE_FILES "/\\\\.svn/;/\\\\.git/;.*~;build.*;html;Debug;Release") +SET (CPACK_STRIP_FILES "bin/cutecash") +#SET (CPACK_PACKAGE_EXECUTABLES "bin/carclient") + +IF(UNIX) + SET(CPACK_GENERATOR "TGZ") +ENDIF(UNIX) + +INCLUDE (CPack) diff --git a/src/gnc/CMakeLists.txt b/src/gnc/CMakeLists.txt index cd71813d67..94b090ae97 100644 --- a/src/gnc/CMakeLists.txt +++ b/src/gnc/CMakeLists.txt @@ -114,3 +114,5 @@ IF (WIN32) ENDIF (WIN32) TARGET_LINK_LIBRARIES (cutecash ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY}) + +INSTALL (TARGETS cutecash RUNTIME DESTINATION bin)