6141d630f3f0ef318a968ae8f1ef811540c91747
[reactos.git] / dll / directx / wine / ddraw / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -DUSE_WIN32_OPENGL)
5
6 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7
8 spec2def(ddraw.dll ddraw.spec ADD_IMPORTLIB)
9
10 list(APPEND SOURCE
11 clipper.c
12 ddraw.c
13 device.c
14 executebuffer.c
15 light.c
16 main.c
17 material.c
18 palette.c
19 surface.c
20 utils.c
21 vertexbuffer.c
22 viewport.c
23 precomp.h
24 ${CMAKE_CURRENT_BINARY_DIR}/ddraw_stubs.c)
25
26 if(MSVC)
27 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
28 #add_target_compile_flags(ddraw "/FIwine/typeof.h")
29 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/FIwine/typeof.h")
30 endif()
31
32 add_library(ddraw SHARED
33 ${SOURCE}
34 ddraw.rc
35 ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def)
36
37 set_module_type(ddraw win32dll)
38 target_link_libraries(ddraw wine uuid dxguid ${PSEH_LIB})
39 add_importlibs(ddraw advapi32 gdi32 user32 d3dwine msvcrt kernel32 ntdll)
40 add_dependencies(ddraw wineheaders)
41 add_pch(ddraw precomp.h SOURCE)
42 add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all)