summaryrefslogtreecommitdiff
path: root/distribution/osx/dependencies.cmake.in
blob: dfa3221941f4689f8f4d7e15f31da788b0c186c5 (plain)
1
2
3
4
5
6
7
8
9
INCLUDE(GetPrerequisites)
GET_PREREQUISITES(@XTRKCAD_LOCATION@ DEPENDENCIES 1 1 "" "")

FOREACH(DEPENDENCY ${DEPENDENCIES})
  GET_FILENAME_COMPONENT(DEPENDENCY_NAME "${DEPENDENCY}" NAME)
  GET_FILENAME_COMPONENT(DEPENDENCY_ACTUAL "${DEPENDENCY}" REALPATH)
  FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE PROGRAM RENAME "${DEPENDENCY_NAME}" FILES "${DEPENDENCY_ACTUAL}")
ENDFOREACH()