xref: /reactos/dll/directx/wine/ddraw/CMakeLists.txt (revision ac43fd2b)
1
2add_definitions(
3    -D__WINESRC__
4    -DUSE_WIN32_OPENGL)
5
6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7
8spec2def(ddraw.dll ddraw.spec ADD_IMPORTLIB)
9
10list(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
26if(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")
30endif()
31
32add_library(ddraw MODULE
33    ${SOURCE}
34    ddraw.rc
35    ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def)
36
37set_module_type(ddraw win32dll)
38target_link_libraries(ddraw wine uuid dxguid ${PSEH_LIB})
39add_importlibs(ddraw advapi32 gdi32 user32 d3dwine msvcrt kernel32 ntdll)
40add_dependencies(ddraw wineheaders)
41add_pch(ddraw precomp.h SOURCE)
42add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all)
43