dd56308bde
* Build MacFreeRDP as normal application, let the bundling out of building * Add a bunding script allowing to create a MacFreeRDP with all dependencies installed
19 lines
691 B
CMake
19 lines
691 B
CMake
# RPATH configuration
|
|
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
|
|
if (APPLE)
|
|
file(RELATIVE_PATH FRAMEWORK_PATH ${CMAKE_INSTALL_FULL_BINDIR} ${CMAKE_INSTALL_FULL_LIBDIR})
|
|
set(CMAKE_INSTALL_RPATH "@loader_path/${FRAMEWORK_PATH}")
|
|
else (APPLE)
|
|
if (NOT FREEBSD)
|
|
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}:\$ORIGIN/..")
|
|
option(WITH_ADD_PLUGIN_TO_RPATH "Add extension and plugin path to RPATH" OFF)
|
|
if (WITH_ADD_PLUGIN_TO_RPATH)
|
|
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${FREERDP_EXTENSION_REL_PATH}:\$ORIGIN/../${FREERDP_PLUGIN_PATH}:${CMAKE_INSTALL_RPATH}")
|
|
endif()
|
|
endif()
|
|
endif(APPLE)
|
|
|
|
|