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)
|
|
|
|
ENDIF(WITH_DRIVER_OPENGL)
|
2011-05-01 15:01:11 +00:00
|
|
|
|
|
|
|
IF(WITH_DRIVER_OPENGLES)
|
|
|
|
SET(NL_OPENGLES_AVAILABLE 1)
|
|
|
|
ENDIF(WITH_DRIVER_OPENGLES)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2011-02-24 17:01:31 +00:00
|
|
|
IF(WITH_DRIVER_DIRECT3D)
|
|
|
|
SET(NL_DIRECT3D_AVAILABLE 1)
|
|
|
|
ENDIF(WITH_DRIVER_DIRECT3D)
|
|
|
|
|
|
|
|
# sound drivers
|
|
|
|
IF(WITH_DRIVER_FMOD)
|
|
|
|
SET(NL_FMOD_AVAILABLE 1)
|
|
|
|
ENDIF(WITH_DRIVER_FMOD)
|
|
|
|
|
|
|
|
IF(WITH_DRIVER_OPENAL)
|
|
|
|
SET(NL_OPENAL_AVAILABLE 1)
|
|
|
|
ENDIF(WITH_DRIVER_OPENAL)
|
|
|
|
|
|
|
|
IF(WITH_DRIVER_DSOUND)
|
|
|
|
SET(NL_DSOUND_AVAILABLE 1)
|
|
|
|
ENDIF(WITH_DRIVER_DSOUND)
|
|
|
|
|
|
|
|
IF(WITH_DRIVER_XAUDIO2)
|
|
|
|
SET(NL_XAUDIO2_AVAILABLE 1)
|
|
|
|
ENDIF(WITH_DRIVER_XAUDIO2)
|
|
|
|
|
2010-05-06 00:08:41 +00:00
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
2010-09-02 16:23:02 +00:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
2010-05-06 00:08:41 +00:00
|
|
|
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
|
|
|
|
ENDMACRO(NL_CONFIGURE_CHECKS)
|