add_definitions(-DRADIANT_BASENAME="${RADIANT_BASENAME}")
set(RADIANT_BIN_DIR ${FINAL_INSTALL_PREFIX} CACHE INTERNAL "...")
-set(RADIANT_LIB_DIR ${FINAL_INSTALL_PREFIX}/lib CACHE INTERNAL "...")
+set(RADIANT_LIB_DIR ${FINAL_INSTALL_PREFIX}/lib/${CMAKE_LIBRARY_ARCHITECTURE} CACHE INTERNAL "...")
set(RADIANT_ADDONS_DIR ${FINAL_INSTALL_PREFIX} CACHE INTERNAL "...")
-set(RADIANT_ETC_DIR ${FINAL_INSTALL_PREFIX}/etc CACHE INTERNAL "...")
set(RADIANT_SHARE_DIR ${FINAL_INSTALL_PREFIX}/share CACHE INTERNAL "...")
set(RADIANT_DATA_DIR ${FINAL_INSTALL_PREFIX} CACHE INTERNAL "...")
if (FHS_INSTALL AND NOT BUNDLE_LIBRARIES)
set(RADIANT_BIN_DIR ${FINAL_INSTALL_PREFIX}/bin)
- set(RADIANT_LIB_DIR ${FINAL_INSTALL_PREFIX}/lib)
+ set(RADIANT_LIB_DIR ${FINAL_INSTALL_PREFIX}/lib/${CMAKE_LIBRARY_ARCHITECTURE})
set(RADIANT_ADDONS_DIR ${RADIANT_LIB_DIR}/${RADIANT_BASENAME})
- set(RADIANT_ETC_DIR ${FINAL_INSTALL_PREFIX}/etc)
set(RADIANT_SHARE_DIR ${FINAL_INSTALL_PREFIX}/share)
set(RADIANT_DATA_DIR ${RADIANT_SHARE_DIR}/${RADIANT_BASENAME})
endif ()
+add_definitions(-DRADIANT_ADDONS_DIR="${RADIANT_ADDONS_DIR}")
+add_definitions(-DRADIANT_DATA_DIR="${RADIANT_DATA_DIR}")
+
set(GAMEPACKS_DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/download CACHE PATH "Where to store downloaded game packs")
#-----------------------------------------------------------------------
{
StringOutputStream buffer;
+#ifdef RADIANT_ADDONS_DIR
+ buffer << RADIANT_ADDONS_DIR << "/";
+#else
buffer << app_path.c_str() << "../lib/" << RADIANT_BASENAME << "/";
+#endif
if ( file_is_directory( buffer.c_str() ) ) {
lib_path = buffer.c_str();
}
{
StringOutputStream buffer;
+#ifdef RADIANT_DATA_DIR
+ buffer << RADIANT_DATA_DIR << "/";
+#else
buffer << app_path.c_str() << "../share/" << RADIANT_BASENAME << "/";
+#endif
if ( file_is_directory( buffer.c_str() ) ) {
data_path = buffer.c_str();
}