summaryrefslogtreecommitdiff
path: root/distribution/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'distribution/CMakeLists.txt')
-rw-r--r--distribution/CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/distribution/CMakeLists.txt b/distribution/CMakeLists.txt
new file mode 100644
index 0000000..e97a4a4
--- /dev/null
+++ b/distribution/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Setup global packaging parameters ...
+SET(CPACK_PACKAGE_DESCRIPTION "XTrackCad is a CAD program for designing model railroad layouts.")
+SET(CPACK_PACKAGE_EXECUTABLES "xtrkcad;XTrkCAD ${XTRKCAD_VERSION}")
+SET(CPACK_PACKAGE_FILE_NAME "xtrkcad-setup-${XTRKCAD_VERSION}")
+SET(CPACK_PACKAGE_INSTALL_DIRECTORY "XTrkCAD ${XTRKCAD_VERSION}")
+SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "XTrkCAD ${XTRKCAD_VERSION}")
+SET(CPACK_PACKAGE_NAME "xtrkcad")
+SET(CPACK_PACKAGE_VENDOR "http://www.xtrkcad.org")
+SET(CPACK_PACKAGE_VERSION ${XTRKCAD_VERSION})
+SET(CPACK_PACKAGE_VERSION_MAJOR ${XTRKCAD_MAJOR_VERSION})
+SET(CPACK_PACKAGE_VERSION_MINOR ${XTRKCAD_MINOR_VERSION})
+SET(CPACK_PACKAGE_VERSION_PATCH ${XTRKCAD_RELEASE_VERSION})
+SET(CPACK_RESOURCE_FILE_LICENSE "${XTrkCAD_SOURCE_DIR}/app/COPYING")
+SET(CPACK_SOURCE_GENERATOR "ZIP;TGZ")
+SET(CPACK_SOURCE_PACKAGE_FILE_NAME "xtrkcad-source-${XTRKCAD_VERSION}")
+
+# Setup platform-specific packaging ...
+IF(APPLE)
+ ADD_SUBDIRECTORY(osx)
+ENDIF(APPLE)
+
+IF(UNIX AND NOT APPLE)
+ ADD_SUBDIRECTORY(posix)
+ENDIF(UNIX AND NOT APPLE)
+
+IF(WIN32)
+ ADD_SUBDIRECTORY(win32)
+ENDIF(WIN32)
+