* Sync to trunk HEAD (r53318).
[reactos.git] / dll / directx / wine / d3d9 / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(
5 -D__WINESRC__
6 -DUSE_WIN32_OPENGL)
7
8 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
9
10 set_rc_compiler()
11
12 spec2def(d3d9.dll d3d9.spec)
13
14 list(APPEND SOURCE
15 buffer.c
16 cubetexture.c
17 d3d9_main.c
18 device.c
19 directx.c
20 query.c
21 shader.c
22 stateblock.c
23 surface.c
24 swapchain.c
25 texture.c
26 vertexdeclaration.c
27 volume.c
28 volumetexture.c
29 version.rc
30 ${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c
31 ${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
32
33 add_library(d3d9 SHARED ${SOURCE})
34
35 set_module_type(d3d9 win32dll)
36
37 target_link_libraries(d3d9 uuid wine)
38
39 add_importlibs(d3d9
40 user32
41 gdi32
42 advapi32
43 wined3d
44 msvcrt
45 kernel32
46 ntdll)
47
48 add_dependencies(d3d9 wineheaders)
49 add_pch(d3d9 d3d9_private.h)
50 add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all)
51 add_importlib_target(d3d9.spec)