# Information about the project location
#
-SET(DEAL_II_PATH "@DEAL_II_PATH@")
SET(DEAL_II_CMAKE_MACROS_RELDIR "@DEAL_II_CMAKE_MACROS_RELDIR@")
SET(DEAL_II_COMMON_RELDIR "@DEAL_II_COMMON_RELDIR@")
SET(DEAL_II_DOCUMENTATION_RELDIR "@DEAL_II_DOCUMENTATION_RELDIR@")
SET(DEAL_II_LIBRARY_RELDIR "@DEAL_II_LIBRARY_RELDIR@")
SET(DEAL_II_PROJECT_CONFIG_RELDIR "@DEAL_II_PROJECT_CONFIG_RELDIR@")
+#
+# Determine DEAL_II_PATH from CMAKE_CURRENT_LIST_DIR:
+#
+STRING(REGEX REPLACE
+ "/@DEAL_II_PROJECT_CONFIG_RELDIR@$" ""
+ DEAL_II_PATH "${CMAKE_CURRENT_LIST_DIR}"
+ )
#
# Print a message after inclusion of this file:
--- /dev/null
+#####
+##
+## Copyright (C) 2013 by the deal.II authors
+##
+## This file is part of the deal.II library.
+##
+## <TODO: Full License information>
+## This file is dual licensed under QPL 1.0 and LGPL 2.1 or any later
+## version of the LGPL license.
+##
+## Author: Matthias Maier <matthias.maier@iwr.uni-heidelberg.de>
+##
+#####
+
+#
+#
+###########################################################################
+# #
+# Setup cpack: #
+# #
+###########################################################################
+
+#
+# General setup:
+#
+SET(CPACK_PACKAGE_NAME "${DEAL_II_PACKAGE_NAME}")
+SET(CPACK_PACKAGE_VENDOR "${DEAL_II_PACKAGE_VENDOR}")
+SET(CPACK_PACKAGE_VERSION "${DEAL_II_PACKAGE_VERSION}")
+SET(CPACK_PACKAGE_VERSION_MAJOR "${DEAL_II_VERSION_MAJOR}")
+SET(CPACK_PACKAGE_VERSION_MINOR "${DEAL_II_VERSION_MINOR}")
+
+SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
+ "Library for solving partial differential equations with the finite element method"
+ )
+SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
+SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
+
+#
+# Generator specific configuration:
+#
+
+# TODO
+
+#INCLUDE(InstallRequiredSystemLibraries)
+INCLUDE(CPack)
#
# DEAL_II_PACKAGE_NAME *)
# DEAL_II_PACKAGE_VERSION *)
+# DEAL_II_PACKAGE_VENDOR *)
# DEAL_II_VERSION_MAJOR
# DEAL_II_VERSION_MINOR
# DEAL_II_VERSION
SET_IF_EMPTY(DEAL_II_PACKAGE_VERSION "8.0.pre") # TODO: Get this value from somewhere else
+SET_IF_EMPTY(DEAL_II_PACKAGE_VENDOR "http://www.dealii.org/")
+
STRING(REGEX REPLACE
"^([0-9]+)\\..*" "\\1" DEAL_II_VERSION_MAJOR "${DEAL_II_PACKAGE_VERSION}"
)