|
|
@ -131,50 +131,41 @@ MACRO(NL_SETUP_BUILD_FLAGS)
|
|
|
|
SET(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} ${NL_RELEASEDEBUG_CFLAGS} ${PLATFORM_CFLAGS} ")
|
|
|
|
SET(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} ${NL_RELEASEDEBUG_CFLAGS} ${PLATFORM_CFLAGS} ")
|
|
|
|
ENDMACRO(NL_SETUP_BUILD_FLAGS)
|
|
|
|
ENDMACRO(NL_SETUP_BUILD_FLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
MACRO(NL_SETUP_PREFIX_PATHS)
|
|
|
|
MACRO(RYZOM_SETUP_PREFIX_PATHS)
|
|
|
|
## Allow override of install_prefix/etc path.
|
|
|
|
## Allow override of install_prefix/etc path.
|
|
|
|
IF(NOT NL_ETC_PREFIX)
|
|
|
|
IF(NOT RYZOM_ETC_PREFIX)
|
|
|
|
IF(WIN32)
|
|
|
|
IF(WIN32)
|
|
|
|
SET(NL_ETC_PREFIX "../etc" CACHE PATH "Installation path for configurations")
|
|
|
|
SET(RYZOM_ETC_PREFIX "." CACHE PATH "Installation path for configurations")
|
|
|
|
ELSE(WIN32)
|
|
|
|
ELSE(WIN32)
|
|
|
|
SET(NL_ETC_PREFIX "${CMAKE_INSTALL_PREFIX}/etc" CACHE PATH "Installation path for configurations")
|
|
|
|
SET(RYZOM_ETC_PREFIX "${CMAKE_INSTALL_PREFIX}/etc/ryzom" CACHE PATH "Installation path for configurations")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ENDIF(NOT NL_ETC_PREFIX)
|
|
|
|
ENDIF(NOT RYZOM_ETC_PREFIX)
|
|
|
|
|
|
|
|
|
|
|
|
## Allow override of install_prefix/share path.
|
|
|
|
## Allow override of install_prefix/share path.
|
|
|
|
IF(NOT NL_SHARE_PREFIX)
|
|
|
|
IF(NOT RYZOM_SHARE_PREFIX)
|
|
|
|
IF(WIN32)
|
|
|
|
IF(WIN32)
|
|
|
|
SET(NL_SHARE_PREFIX "../share" CACHE PATH "Installation path for data.")
|
|
|
|
SET(RYZOM_SHARE_PREFIX "." CACHE PATH "Installation path for data.")
|
|
|
|
ELSE(WIN32)
|
|
|
|
ELSE(WIN32)
|
|
|
|
SET(NL_SHARE_PREFIX "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "Installation path for data.")
|
|
|
|
SET(RYZOM_SHARE_PREFIX "${CMAKE_INSTALL_PREFIX}/share/ryzom" CACHE PATH "Installation path for data.")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ENDIF(NOT NL_SHARE_PREFIX)
|
|
|
|
ENDIF(NOT NL_SHARE_PREFIX)
|
|
|
|
|
|
|
|
|
|
|
|
## Allow override of install_prefix/sbin path.
|
|
|
|
## Allow override of install_prefix/sbin path.
|
|
|
|
IF(NOT NL_SBIN_PREFIX)
|
|
|
|
IF(NOT RYZOM_SBIN_PREFIX)
|
|
|
|
IF(WIN32)
|
|
|
|
IF(WIN32)
|
|
|
|
SET(NL_SBIN_PREFIX "../sbin" CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
SET(RYZOM_SBIN_PREFIX "." CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
ELSE(WIN32)
|
|
|
|
ELSE(WIN32)
|
|
|
|
SET(NL_SBIN_PREFIX "${CMAKE_INSTALL_PREFIX}/sbin" CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
SET(RYZOM_SBIN_PREFIX "${CMAKE_INSTALL_PREFIX}/sbin" CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ENDIF(NOT NL_SBIN_PREFIX)
|
|
|
|
ENDIF(NOT RYZOM_SBIN_PREFIX)
|
|
|
|
|
|
|
|
|
|
|
|
## Allow override of install_prefix/bin path.
|
|
|
|
## Allow override of install_prefix/bin path.
|
|
|
|
IF(NOT NL_BIN_PREFIX)
|
|
|
|
IF(NOT RYZOM_BIN_PREFIX)
|
|
|
|
IF(WIN32)
|
|
|
|
IF(WIN32)
|
|
|
|
SET(NL_BIN_PREFIX "../bin" CACHE PATH "Installation path for tools and applications.")
|
|
|
|
SET(RYZOM_BIN_PREFIX "." CACHE PATH "Installation path for tools and applications.")
|
|
|
|
ELSE(WIN32)
|
|
|
|
ELSE(WIN32)
|
|
|
|
SET(NL_BIN_PREFIX "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation path for tools and applications.")
|
|
|
|
SET(RYZOM_BIN_PREFIX "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation path for client and tools.")
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ENDIF(NOT NL_BIN_PREFIX)
|
|
|
|
ENDIF(NOT RYZOM_BIN_PREFIX)
|
|
|
|
|
|
|
|
|
|
|
|
## Allow override of install_prefix/bin path.
|
|
|
|
ENDMACRO(RYZOM_SETUP_PREFIX_PATHS)
|
|
|
|
IF(NOT NL_LOG_PREFIX)
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
|
|
|
|
SET(NL_LOG_PREFIX "../var/log" CACHE PATH "Installation path for tools and applications.")
|
|
|
|
|
|
|
|
ELSE(WIN32)
|
|
|
|
|
|
|
|
SET(NL_LOG_PREFIX "${CMAKE_INSTALL_PREFIX}/var/log" CACHE PATH "Installation path for tools and applications.")
|
|
|
|
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
ENDIF(NOT NL_LOG_PREFIX)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENDMACRO(NL_SETUP_PREFIX_PATHS)
|
|
|
|
|
|
|
|