reactos/dll/directx/wine/d3d9/CMakeLists.txt
Serge Gautherie cef6a5b691 [D3D8][D3D9][DDRAW][WINED3D] Use modules instead of shared libraries
This reverts part of (revert) commit 81cffd7658,
so restores 23373acbb9.
2019-10-27 09:50:38 +01:00

36 lines
762 B
CMake

add_definitions(
-D__WINESRC__
-DUSE_WIN32_OPENGL)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(d3d9.dll d3d9.spec ADD_IMPORTLIB)
list(APPEND SOURCE
buffer.c
d3d9_main.c
device.c
directx.c
query.c
shader.c
stateblock.c
surface.c
swapchain.c
texture.c
vertexdeclaration.c
volume.c
precomp.h)
add_library(d3d9 MODULE
${SOURCE}
guid.c
version.rc
${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
set_module_type(d3d9 win32dll UNICODE)
target_link_libraries(d3d9 wine)
add_importlibs(d3d9 d3dwine user32 msvcrt kernel32 ntdll)
add_pch(d3d9 precomp.h SOURCE)
add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all)