26 lines
653 B
CMake
26 lines
653 B
CMake
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()
|