[CMAKE]
[reactos.git] / dll / directx / wine / d3d9 / CMakeLists.txt
1 set_rc_compiler()
2 set_unicode()
3
4 add_definitions(-D__WINESRC__)
5 add_definitions(-DUSE_WIN32_OPENGL)
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 if(MSVC)
9 add_definitions(-FImsvchelper.h)
10 endif()
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
38 uuid
39 wine)
40
41 add_importlibs(d3d9
42 user32
43 gdi32
44 advapi32
45 wined3d
46 msvcrt
47 kernel32
48 ntdll)
49
50 add_dependencies(d3d9 wineheaders)
51 add_cab_target(d3d9 1)
52 add_importlib_target(d3d9.spec)