22 lines
939 B
CMake
22 lines
939 B
CMake
FILE(GLOB SRC *.cpp *.h *.def)
|
|
|
|
NL_TARGET_DRIVER(nel_drv_direct3d_win ${SRC})
|
|
|
|
INCLUDE_DIRECTORIES(${DXSDK_INCLUDE_DIR})
|
|
|
|
TARGET_LINK_LIBRARIES(nel_drv_direct3d_win nel3d nelmisc ${DXSDK_D3DX9_LIBRARY} ${DXSDK_D3D9_LIBRARY} ${DXSDK_DINPUT_LIBRARY} ${DXSDK_GUID_LIBRARY})
|
|
|
|
NL_DEFAULT_PROPS(nel_drv_direct3d_win "NeL, Driver, Video: Direct3D")
|
|
NL_ADD_RUNTIME_FLAGS(nel_drv_direct3d_win)
|
|
NL_ADD_LIB_SUFFIX(nel_drv_direct3d_win)
|
|
|
|
ADD_DEFINITIONS(/Ddriver_direct3d_EXPORTS)
|
|
|
|
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)
|
|
|
|
INSTALL(TARGETS nel_drv_direct3d_win LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib RUNTIME DESTINATION bin COMPONENT drivers3d)
|
|
IF(WITH_MAXPLUGIN)
|
|
INSTALL(TARGETS nel_drv_direct3d_win RUNTIME DESTINATION maxplugin COMPONENT drivers3d)
|
|
ENDIF(WITH_MAXPLUGIN)
|