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