[WIN32K]
[reactos.git] / reactos / dll / directx / wine / ddraw / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -DUSE_WIN32_OPENGL)
5
6 if(MSVC)
7 add_definitions(/FIwine/typeof.h)
8 endif()
9
10 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
11
12 set_rc_compiler()
13
14 spec2def(ddraw.dll ddraw.spec ADD_IMPORTLIB)
15
16 list(APPEND SOURCE
17 clipper.c
18 ddraw.c
19 ddraw.rc
20 device.c
21 executebuffer.c
22 light.c
23 main.c
24 material.c
25 palette.c
26 stubs.c
27 surface.c
28 utils.c
29 vertexbuffer.c
30 viewport.c
31 ${CMAKE_CURRENT_BINARY_DIR}/ddraw_stubs.c
32 ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def)
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_pch(ddraw ddraw_private.h)
55 add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all)
56