- Update to r53061
[reactos.git] / 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)
15
16 list(APPEND SOURCE
17 clipper.c
18 ddraw.c
19 device.c
20 executebuffer.c
21 light.c
22 main.c
23 material.c
24 palette.c
25 regsvr.c
26 stubs.c
27 surface.c
28 utils.c
29 vertexbuffer.c
30 viewport.c
31 version.rc
32 ${CMAKE_CURRENT_BINARY_DIR}/ddraw_stubs.c
33 ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def)
34
35 add_library(ddraw SHARED ${SOURCE})
36 set_module_type(ddraw win32dll)
37
38 target_link_libraries(ddraw
39 wine
40 uuid
41 dxguid
42 ${PSEH_LIB})
43
44 add_importlibs(ddraw
45 advapi32
46 gdi32
47 ole32
48 user32
49 wined3d
50 msvcrt
51 kernel32
52 ntdll)
53
54 add_dependencies(ddraw wineheaders)
55 add_pch(ddraw ddraw_private.h)
56 add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all)
57 add_importlib_target(ddraw.spec)