2010-05-06 00:08:41 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h *.def)
|
|
|
|
|
2010-07-14 17:13:07 +00:00
|
|
|
NL_TARGET_DRIVER(nel_drv_direct3d_win ${SRC})
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-08-28 12:10:56 +00:00
|
|
|
INCLUDE_DIRECTORIES(${DXSDK_INCLUDE_DIR})
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-09-14 11:51:44 +00:00
|
|
|
TARGET_LINK_LIBRARIES(nel_drv_direct3d_win nel3d nelmisc ${DXSDK_D3DX9_LIBRARY} ${DXSDK_D3D9_LIBRARY} ${DXSDK_DINPUT_LIBRARY} ${DXSDK_GUID_LIBRARY})
|
2010-07-14 17:13:07 +00:00
|
|
|
|
2010-09-03 13:07:47 +00:00
|
|
|
NL_DEFAULT_PROPS(nel_drv_direct3d_win "NeL, Driver, Video: Direct3D")
|
2010-07-14 17:13:07 +00:00
|
|
|
NL_ADD_RUNTIME_FLAGS(nel_drv_direct3d_win)
|
|
|
|
NL_ADD_LIB_SUFFIX(nel_drv_direct3d_win)
|
|
|
|
|
2010-05-06 00:08:41 +00:00
|
|
|
ADD_DEFINITIONS(/Ddriver_direct3d_EXPORTS)
|
|
|
|
|
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-08-28 12:10:56 +00:00
|
|
|
INSTALL(TARGETS nel_drv_direct3d_win LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib RUNTIME DESTINATION bin COMPONENT drivers3d)
|
2010-05-06 00:08:41 +00:00
|
|
|
IF(WITH_MAXPLUGIN)
|
|
|
|
INSTALL(TARGETS nel_drv_direct3d_win RUNTIME DESTINATION maxplugin COMPONENT drivers3d)
|
|
|
|
ENDIF(WITH_MAXPLUGIN)
|