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