2010-05-06 00:08:41 +00:00
|
|
|
MACRO(NL_CONFIGURE_CHECKS)
|
2015-11-29 13:02:44 +00:00
|
|
|
INCLUDE(GetRevision)
|
2011-02-24 17:01:31 +00:00
|
|
|
|
|
|
|
# 3D drivers
|
|
|
|
IF(WITH_DRIVER_OPENGL)
|
|
|
|
SET(NL_OPENGL_AVAILABLE 1)
|
2015-11-29 13:06:05 +00:00
|
|
|
ENDIF()
|
2011-05-01 15:01:11 +00:00
|
|
|
|
|
|
|
IF(WITH_DRIVER_OPENGLES)
|
|
|
|
SET(NL_OPENGLES_AVAILABLE 1)
|
2015-11-29 13:06:05 +00:00
|
|
|
ENDIF()
|
|
|
|
|
2011-02-24 17:01:31 +00:00
|
|
|
IF(WITH_DRIVER_DIRECT3D)
|
|
|
|
SET(NL_DIRECT3D_AVAILABLE 1)
|
2015-11-29 13:06:05 +00:00
|
|
|
ENDIF()
|
2011-02-24 17:01:31 +00:00
|
|
|
|
|
|
|
# sound drivers
|
|
|
|
IF(WITH_DRIVER_FMOD)
|
|
|
|
SET(NL_FMOD_AVAILABLE 1)
|
2015-11-29 13:06:05 +00:00
|
|
|
ENDIF()
|
2011-02-24 17:01:31 +00:00
|
|
|
|
|
|
|
IF(WITH_DRIVER_OPENAL)
|
|
|
|
SET(NL_OPENAL_AVAILABLE 1)
|
2015-11-29 13:06:05 +00:00
|
|
|
ENDIF()
|
2011-02-24 17:01:31 +00:00
|
|
|
|
|
|
|
IF(WITH_DRIVER_DSOUND)
|
|
|
|
SET(NL_DSOUND_AVAILABLE 1)
|
2015-11-29 13:06:05 +00:00
|
|
|
ENDIF()
|
2011-02-24 17:01:31 +00:00
|
|
|
|
|
|
|
IF(WITH_DRIVER_XAUDIO2)
|
|
|
|
SET(NL_XAUDIO2_AVAILABLE 1)
|
2015-11-29 13:06:05 +00:00
|
|
|
ENDIF()
|
2011-02-24 17:01:31 +00:00
|
|
|
|
2015-11-29 13:19:02 +00:00
|
|
|
IF(NOT RYZOM_VERSION_MAJOR)
|
|
|
|
SET(RYZOM_VERSION_MAJOR ${NL_VERSION_MAJOR})
|
|
|
|
SET(RYZOM_VERSION_MINOR ${NL_VERSION_MINOR})
|
|
|
|
SET(RYZOM_VERSION_PATCH ${NL_VERSION_PATCH})
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
SET(NL_VERSION "${NL_VERSION_MAJOR}.${NL_VERSION_MINOR}.${NL_VERSION_PATCH}.${REVISION}")
|
|
|
|
SET(NL_VERSION_RC "${NL_VERSION_MAJOR},${NL_VERSION_MINOR},${NL_VERSION_PATCH},${REVISION}")
|
|
|
|
|
2016-10-19 15:07:31 +00:00
|
|
|
SET(RYZOM_VERSION_SHORT "${RYZOM_VERSION_MAJOR}.${RYZOM_VERSION_MINOR}.${RYZOM_VERSION_PATCH}")
|
|
|
|
SET(RYZOM_VERSION "${RYZOM_VERSION_SHORT}.${REVISION}")
|
2015-11-29 13:19:02 +00:00
|
|
|
SET(RYZOM_VERSION_RC "${RYZOM_VERSION_MAJOR},${RYZOM_VERSION_MINOR},${RYZOM_VERSION_PATCH},${REVISION}")
|
|
|
|
NOW(BUILD_DATE)
|
|
|
|
|
|
|
|
SET(COPYRIGHT "${YEAR} ${AUTHOR}")
|
|
|
|
|
|
|
|
IF(NOT RYZOM_CLIENT_ICON)
|
|
|
|
SET(RYZOM_CLIENT_ICON "ryzom_client")
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
|
2010-05-06 00:08:41 +00:00
|
|
|
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
|
2015-11-29 13:06:05 +00:00
|
|
|
ENDMACRO()
|