[CMAKE]
[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 parent.c
26 regsvr.c
27 stubs.c
28 surface.c
29 utils.c
30 vertexbuffer.c
31 viewport.c
32 version.rc
33 ${CMAKE_CURRENT_BINARY_DIR}/ddraw_stubs.c
34 ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def)
35
36 add_library(ddraw SHARED ${SOURCE})
37 set_module_type(ddraw win32dll)
38
39 target_link_libraries(ddraw
40 wine
41 uuid
42 dxguid
43 wined3d_guid
44 ${PSEH_LIB})
45
46 add_importlibs(ddraw
47 advapi32
48 gdi32
49 ole32
50 user32
51 wined3d
52 msvcrt
53 kernel32
54 ntdll)
55
56 add_dependencies(ddraw wineheaders)
57 add_cd_file(TARGET ddraw DESTINATION reactos/system32)
58 add_importlib_target(ddraw.spec)