[CMAKE]
[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 if(MSVC)
11 add_definitions(-FImsvchelper.h)
12 endif()
13
14 set_rc_compiler()
15
16 spec2def(d3d9.dll d3d9.spec)
17
18 list(APPEND SOURCE
19 buffer.c
20 cubetexture.c
21 d3d9_main.c
22 device.c
23 directx.c
24 query.c
25 shader.c
26 stateblock.c
27 surface.c
28 swapchain.c
29 texture.c
30 vertexdeclaration.c
31 volume.c
32 volumetexture.c
33 version.rc
34 #${REACTOS_BINARY_DIR}/include/reactos/wine/wined3d_i.c
35 ${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c
36 ${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
37
38 add_library(d3d9 SHARED ${SOURCE})
39
40 set_module_type(d3d9 win32dll)
41
42 target_link_libraries(d3d9 uuid wine)
43
44 add_importlibs(d3d9
45 user32
46 gdi32
47 advapi32
48 wined3d
49 msvcrt
50 kernel32
51 ntdll)
52
53 add_dependencies(d3d9 wineheaders)
54 add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all)
55 add_importlib_target(d3d9.spec)