summaryrefslogtreecommitdiffstats
path: root/dependencies.cmake.in
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-02-05 12:09:20 -0600
committerAndrew <forkk@forkk.net>2013-02-05 12:09:20 -0600
commit2f619e40436175b4fb30c449e43305039d87348a (patch)
tree5612c255976a9d05cf5329656e39f3141445447f /dependencies.cmake.in
parent74c5a582b146e62f34b9933530d7cf2c96c026df (diff)
downloadMultiMC-2f619e40436175b4fb30c449e43305039d87348a.tar
MultiMC-2f619e40436175b4fb30c449e43305039d87348a.tar.gz
MultiMC-2f619e40436175b4fb30c449e43305039d87348a.tar.lz
MultiMC-2f619e40436175b4fb30c449e43305039d87348a.tar.xz
MultiMC-2f619e40436175b4fb30c449e43305039d87348a.zip
Added install target for Windows.
Diffstat (limited to 'dependencies.cmake.in')
-rw-r--r--dependencies.cmake.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/dependencies.cmake.in b/dependencies.cmake.in
new file mode 100644
index 00000000..1790b97b
--- /dev/null
+++ b/dependencies.cmake.in
@@ -0,0 +1,25 @@
+cmake_minimum_required(VERSION 2.8.9)
+
+message(STATUS "Running install script...")
+
+SET(Qt5_DIR @Qt5_DIR@)
+
+INCLUDE(GetPrerequisites)
+GET_PREREQUISITES(@BINARY_LOCATION@ MULTIMC_PREREQS 1 1 "" "")
+
+message(STATUS "Prerequisites: ${MULTIMC_PREREQS}")
+
+FOREACH(PREREQ ${MULTIMC_PREREQS})
+ GET_FILENAME_COMPONENT(PREREQ_NAME "${PREREQ}" NAME)
+ GET_FILENAME_COMPONENT(_PREREQ_ACTUAL "${PREREQ}" REALPATH)
+ SET(PREREQ_ACTUAL "${Qt5_DIR}/bin/${PREREQ}")
+
+ message(STATUS "Adding install prerequisite: ${PREREQ_NAME}")
+
+ FILE(INSTALL
+ DESTINATION "${CMAKE_INSTALL_PREFIX}"
+ TYPE PROGRAM
+ RENAME "${PREREQ_NAME}"
+ FILES "${PREREQ_ACTUAL}"
+ )
+ENDFOREACH()