Commit dec97e5c authored by Matthias Möller's avatar Matthias Möller

- add LIB_SUFFIX variable

- reduces dir depth for libraries

closes #2257

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19444 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7acb313b
......@@ -94,8 +94,8 @@ if (WIN32)
endif ()
else ()
set (ACG_PROJECT_DATADIR "share/${CMAKE_PROJECT_NAME}")
set (ACG_PROJECT_LIBDIR "lib/${CMAKE_PROJECT_NAME}")
set (ACG_PROJECT_PLUGINDIR "lib/${CMAKE_PROJECT_NAME}/plugins")
set (ACG_PROJECT_LIBDIR "lib${LIB_SUFFIX}")
set (ACG_PROJECT_PLUGINDIR "lib${LIB_SUFFIX}/plugins")
set (ACG_PROJECT_BINDIR "bin")
endif ()
......@@ -129,7 +129,7 @@ macro (acg_set_target_props target)
elseif (APPLE AND NOT ACG_PROJECT_MACOS_BUNDLE)
set_target_properties (
${target} PROPERTIES
INSTALL_NAME_DIR "@executable_path/../lib/${CMAKE_PROJECT_NAME}"
INSTALL_NAME_DIR "@executable_path/../${ACG_PROJECT_LIBDIR}"
BUILD_WITH_INSTALL_RPATH 1
SKIP_BUILD_RPATH 0
)
......@@ -137,7 +137,7 @@ macro (acg_set_target_props target)
set_target_properties (
${target} PROPERTIES
INSTALL_RPATH "$ORIGIN/../lib/${CMAKE_PROJECT_NAME}"
INSTALL_RPATH "$ORIGIN/../${ACG_PROJECT_LIBDIR}"
BUILD_WITH_INSTALL_RPATH 1
SKIP_BUILD_RPATH 0
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_BINDIR}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment