2010-05-06 00:08:41 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h *.def)
|
|
|
|
|
|
|
|
DECORATE_NEL_LIB("nel_drv_direct3d_win")
|
|
|
|
SET(NLDRV_D3D_LIB ${LIBNAME})
|
|
|
|
DECORATE_NEL_LIB("nel3d")
|
|
|
|
SET(NL3D_LIB ${LIBNAME})
|
|
|
|
|
|
|
|
ADD_LIBRARY(nel_drv_direct3d_win SHARED ${SRC})
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${FREETYPE_INC} ${DXSDK_INCLUDE_DIR})
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(nel_drv_direct3d_win nel3d ${LIBXML2_LIBRARIES} ${FREETYPE_LIB} ${DXSDK_D3DX9_LIBRARY} ${DXSDK_D3D9_LIBRARY} ${DXSDK_DINPUT_LIBRARY} ${DXSDK_GUID_LIBRARY})
|
|
|
|
SET_TARGET_PROPERTIES(nel_drv_direct3d_win PROPERTIES
|
2010-06-14 08:30:17 +00:00
|
|
|
VERSION ${NL_VERSION}
|
|
|
|
SOVERSION ${NL_VERSION_MAJOR}
|
2010-06-26 14:37:27 +00:00
|
|
|
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
|
|
|
|
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
|
2010-05-06 00:08:41 +00:00
|
|
|
DEBUG_POSTFIX "_d"
|
|
|
|
RELEASE_POSTFIX "_r"
|
|
|
|
PROJECT_LABEL "Driver, Video: Direct3D")
|
|
|
|
ADD_DEFINITIONS(/Ddriver_direct3d_EXPORTS)
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
|
2010-06-30 13:31:31 +00:00
|
|
|
IF(WITH_PCH)
|
|
|
|
ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_direct3d_win ${CMAKE_CURRENT_SOURCE_DIR}/stddirect3d.h ${CMAKE_CURRENT_SOURCE_DIR}/stddirect3d.cpp)
|
|
|
|
ENDIF(WITH_PCH)
|
2010-06-25 06:33:15 +00:00
|
|
|
|
2010-05-06 00:08:41 +00:00
|
|
|
INSTALL(TARGETS nel_drv_direct3d_win LIBRARY DESTINATION lib RUNTIME DESTINATION bin COMPONENT drivers3d)
|
|
|
|
IF(WITH_MAXPLUGIN)
|
|
|
|
INSTALL(TARGETS nel_drv_direct3d_win RUNTIME DESTINATION maxplugin COMPONENT drivers3d)
|
|
|
|
ENDIF(WITH_MAXPLUGIN)
|