From 645eb6494d6517ccfbb790f28418dbb180cc80a5 Mon Sep 17 00:00:00 2001 From: Alf Gaida Date: Fri, 30 Sep 2016 17:09:44 +0200 Subject: [PATCH] Remove cpack (#44) * remove "building with cpack" from CMakeLists.txt - not used anymore * Added very basic .gitattributes --- .gitattributes | 17 +++++++++++++++++ CMakeLists.txt | 15 --------------- 2 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..09666040 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# remove files from deployment using `git archive` + +# git files +.gitattributes export-ignore +.gitignore export-ignore + + +# several files and directories we never want to export +# a little bit belt and braces as the most of these files +# should never ever be in the repository + +.*~ export-ignore +.kdev4 export-ignore + +/build export-ignore +/temp export-ignore +/tmp export-ignore diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ba59ab4..cf4f311e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,18 +98,3 @@ if(BUILD_DOCUMENTATION) COMPONENT Devel ) endif() - -# building tarball with CPack ------------------------------------------------- -# To create a source distribution, type: -# make package_source -include(InstallRequiredSystemLibraries) -set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") -set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") -set(CPACK_PACKAGE_VENDOR "") -set(CPACK_PACKAGE_VERSION_MAJOR ${LIBFM_QT_VERSION_MAJOR}) -set(CPACK_PACKAGE_VERSION_MINOR ${LIBFM_QT_VERSION_MINOR}) -set(CPACK_PACKAGE_VERSION_PATCH ${LIBFM_QT_VERSION_PATCH}) -set(CPACK_GENERATOR TBZ2) -set(CPACK_SOURCE_GENERATOR TBZ2) -set(CPACK_SOURCE_IGNORE_FILES /build/;.gitignore;.*~;.git;.kdev4;temp) -include(CPack)