* Sync up to trunk HEAD (r62286).
[reactos.git] / dll / directx / wine / dxgi / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
4
5 spec2def(dxgi.dll dxgi.spec ADD_IMPORTLIB)
6
7 list(APPEND SOURCE
8 adapter.c
9 device.c
10 dxgi_main.c
11 factory.c
12 output.c
13 surface.c
14 swapchain.c
15 utils.c
16 dxgi_private.h)
17
18 add_library(dxgi SHARED
19 ${SOURCE}
20 guid.c
21 version.rc
22 ${CMAKE_CURRENT_BINARY_DIR}/dxgi.def)
23
24 set_module_type(dxgi win32dll)
25 target_link_libraries(dxgi uuid dxgi_uuids wine)
26 add_importlibs(dxgi wined3d msvcrt kernel32 ntdll)
27 add_dependencies(dxgi wineheaders)
28 add_pch(dxgi dxgi_private.h SOURCE)
29 add_cd_file(TARGET dxgi DESTINATION reactos/system32 FOR all)