sync trunk HEAD (r50626)
[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 ${CMAKE_CURRENT_BINARY_DIR}/d3d8.def)
33
34 add_library(d3d8 SHARED ${SOURCE})
35
36 set_module_type(d3d8 win32dll)
37
38 target_link_libraries(d3d8 uuid wine)
39
40 add_importlibs(d3d8
41 user32
42 gdi32
43 advapi32
44 wined3d
45 msvcrt
46 kernel32
47 ntdll)
48
49 add_dependencies(d3d8 wineheaders)
50 add_cab_target(d3d8 1)