[FREELDR]
[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 ddraw.def)
23
24 add_definitions(
25 -D__WINESRC__
26 -DUSE_WIN32_OPENGL)
27
28 if(MSVC)
29 add_definitions(/FIwine/typeof.h)
30 endif()
31 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
32
33 add_library(ddraw SHARED ${SOURCE})
34 set_module_type(ddraw win32dll)
35
36 target_link_libraries(ddraw
37 wine
38 uuid
39 dxguid
40 ${PSEH_LIB})
41
42 add_importlibs(ddraw
43 advapi32
44 gdi32
45 ole32
46 user32
47 wined3d
48 msvcrt
49 kernel32
50 ntdll)
51
52 add_dependencies(ddraw wineheaders)
53 add_cab_target(ddraw 1)