pollymc/dependencies.cmake.in

34 lines
796 B
CMake
Raw Normal View History

2013-02-05 23:39:20 +05:30
cmake_minimum_required(VERSION 2.8.9)
message(STATUS "Running install script...")
SET(Qt5_DIR @Qt5_DIR@)
2013-02-12 21:44:23 +05:30
IF(WIN32)
SET(LIB_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
ELSE()
SET(LIB_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/lib)
ENDIF()
2013-02-05 23:39:20 +05:30
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)
2013-02-06 12:07:51 +05:30
GET_FILENAME_COMPONENT(PREREQ_ACTUAL "${PREREQ}" REALPATH)
IF(WIN32)
2013-02-05 23:39:20 +05:30
SET(PREREQ_ACTUAL "${Qt5_DIR}/bin/${PREREQ}")
2013-02-06 12:07:51 +05:30
ENDIF()
2013-02-05 23:39:20 +05:30
message(STATUS "Adding install prerequisite: ${PREREQ_NAME}")
FILE(INSTALL
2013-02-12 21:44:23 +05:30
DESTINATION "${LIB_INSTALL_PREFIX}"
2013-02-05 23:39:20 +05:30
TYPE PROGRAM
RENAME "${PREREQ_NAME}"
FILES "${PREREQ_ACTUAL}"
)
ENDFOREACH()