[CMAKE]
[reactos.git] / dll / directx / wine / d3d8 / 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(d3d8.dll d3d8.spec)
17
18 list(APPEND SOURCE
19 buffer.c
20 cubetexture.c
21 d3d8_main.c
22 device.c
23 directx.c
24 shader.c
25 surface.c
26 swapchain.c
27 texture.c
28 vertexdeclaration.c
29 volume.c
30 volumetexture.c
31 version.rc
32 #${REACTOS_BINARY_DIR}/include/reactos/wine/wined3d_i.c
33 ${CMAKE_CURRENT_BINARY_DIR}/d3d8.def)
34
35 add_library(d3d8 SHARED ${SOURCE})
36
37 set_module_type(d3d8 win32dll)
38
39 target_link_libraries(d3d8 uuid wine)
40
41 add_importlibs(d3d8
42 user32
43 gdi32
44 advapi32
45 wined3d
46 msvcrt
47 kernel32
48 ntdll)
49
50 add_dependencies(d3d8 wineheaders)
51 add_cab_target(d3d8 1)