Merge release-2018 into master
[alexxy/gromacs.git] / cmake / gmxCPackUtilities.cmake
index 7867998a8a68c61587fbbc023adfee54e7baa9a4..5a5c267c41a8623e2b8b6ee7978372b4e47955b7 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2014,2015,2016, by the GROMACS development team, led by
+# Copyright (c) 2014,2015,2016,2017,2018, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -118,8 +118,16 @@ function (gmx_cpack_write_config)
     # Settings specific to source packages.
     set(CPACK_SOURCE_GENERATOR TGZ)
     set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
-    set(CPACK_SOURCE_IGNORE_FILES
-        "\\\\.isreposource$;\\\\.git/;\\\\.gitignore$;\\\\.gitattributes;INSTALL-dev;")
+    list(APPEND FILES_NOT_INCLUDED_IN_SOURCE_PACKAGE
+        \\\\.isreposource
+        \\\\.git
+        \\\\.gitignore
+        \\\\.gitattributes
+        INSTALL-dev
+        cmake/FindCUDA\\\\.cmake
+        cmake/FindCUDA)
+    set(CPACK_SOURCE_IGNORE_FILES ${FILES_NOT_INCLUDED_IN_SOURCE_PACKAGE})
+
     # Get the list of directories added with gmx_cpack_add_generated_source_directory()
     get_property(CPACK_SOURCE_INSTALLED_DIRECTORIES
         GLOBAL PROPERTY GMX_CPACK_SOURCE_INSTALLED_DIRECTORIES)