[CMAKE]
[reactos.git] / dll / directx / wine / ddraw / CMakeLists.txt
1 set_rc_compiler()
2
3 spec2def(ddraw.dll ddraw.spec)
4
5 list(APPEND SOURCE
6 clipper.c
7 ddraw.c
8 device.c
9 executebuffer.c
10 light.c
11 main.c
12 material.c
13 palette.c
14 parent.c
15 regsvr.c
16 stubs.c
17 surface.c
18 utils.c
19 vertexbuffer.c
20 viewport.c
21 version.rc
22 ${CMAKE_CURRENT_BINARY_DIR}/ddraw_stubs.c
23 ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def)
24
25 add_definitions(
26 -D__WINESRC__
27 -DUSE_WIN32_OPENGL)
28
29 if(MSVC)
30 add_definitions(/FIwine/typeof.h)
31 endif()
32 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
33
34 add_library(ddraw SHARED ${SOURCE})
35 set_module_type(ddraw win32dll)
36
37 target_link_libraries(ddraw
38 wine
39 uuid
40 dxguid
41 ${PSEH_LIB})
42
43 add_importlibs(ddraw
44 advapi32
45 gdi32
46 ole32
47 user32
48 wined3d
49 msvcrt
50 kernel32
51 ntdll)
52
53 add_dependencies(ddraw wineheaders)
54 add_cab_target(ddraw 1)
55 add_importlib_target(ddraw.spec)