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