[WINED3D]
[reactos.git] / reactos / dll / directx / wine / d3d9 / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -DUSE_WIN32_OPENGL)
5
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 spec2def(d3d9.dll d3d9.spec ADD_IMPORTLIB)
9
10 list(APPEND SOURCE
11 buffer.c
12 d3d9_main.c
13 device.c
14 directx.c
15 query.c
16 shader.c
17 stateblock.c
18 surface.c
19 swapchain.c
20 texture.c
21 vertexdeclaration.c
22 volume.c
23 d3d9_private.h)
24
25 add_library(d3d9 SHARED
26 ${SOURCE}
27 guid.c
28 version.rc
29 ${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c
30 ${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
31
32 set_module_type(d3d9 win32dll UNICODE HOTPATCHABLE)
33 target_link_libraries(d3d9 wine)
34 add_importlibs(d3d9 d3dwine msvcrt kernel32 ntdll)
35 add_pch(d3d9 d3d9_private.h SOURCE)
36 add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all)