Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/mac_HS16/cmake/CopyLibPhase.cmake @ 11283

Last change on this file since 11283 was 11278, checked in by ahedges, 8 years ago

comment out some stuff and update the cmake file for macOS 10.12

File size: 1.2 KB
Line 
1SET(DEP_INCLUDE_DIR   ${DEPENDENCY_PACKAGE_DIR}/include)
2SET(DEP_LIBRARY_DIR   ${DEPENDENCY_PACKAGE_DIR}/lib)
3SET(DEP_BINARY_DIR    ${DEPENDENCY_PACKAGE_DIR}/bin)
4SET(DEP_FRAMEWORK_DIR ${DEPENDENCY_PACKAGE_DIR}/Library/Frameworks)
5
6# Install on OSX
7foreach(target IN ITEMS ${CMAKE_CONFIGURATION_TYPES})
8    file(GLOB_RECURSE dep_frameworks FOLLOW_SYMLINKS "${DEP_FRAMEWORK_DIR}/*")
9    file(GLOB_RECURSE dep_libraries FOLLOW_SYMLINKS "${DEP_LIBRARY_DIR}/*")
10
11    foreach(p IN LISTS dep_frameworks)
12        STRING(REGEX REPLACE "${DEP_FRAMEWORK_DIR}" "" rel_p ${p})
13        configure_file(${p}
14        "${CMAKE_BINARY_DIR}/bin/${target}/Orxonox.app/Contents/Frameworks/${rel_p}" COPYONLY)
15    endforeach()
16
17    foreach(p IN LISTS dep_libraries)
18        STRING(REGEX REPLACE "${DEP_LIBRARY_DIR}" "" rel_p ${p})
19        configure_file(${p}
20        "${CMAKE_BINARY_DIR}/bin/${target}/Orxonox.app/Contents/Frameworks/${rel_p}" COPYONLY)
21    endforeach()
22
23    file(GLOB_RECURSE dep_plugins FOLLOW_SYMLINKS "${DEP_BINARY_DIR}/*")
24
25    foreach(p IN LISTS dep_plugins)
26        STRING(REGEX REPLACE "${DEP_BINARY_DIR}" "" rel_p ${p})
27        configure_file(${p}
28        "${CMAKE_BINARY_DIR}/bin/${target}/Orxonox.app/Contents/Plugins/${rel_p}" COPYONLY)
29    endforeach()
30endforeach()
Note: See TracBrowser for help on using the repository browser.