xref: /reactos/dll/directx/wine/d3d8/CMakeLists.txt (revision c7bba39a)
1
2add_definitions(
3    -D__WINESRC__
4    -DUSE_WIN32_OPENGL)
5
6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7spec2def(d3d8.dll d3d8.spec)
8
9list(APPEND SOURCE
10    buffer.c
11    d3d8_main.c
12    device.c
13    directx.c
14    shader.c
15    surface.c
16    swapchain.c
17    texture.c
18    vertexdeclaration.c
19    volume.c
20    precomp.h)
21
22add_library(d3d8 SHARED
23    ${SOURCE}
24    guid.c
25    version.rc
26    ${CMAKE_CURRENT_BINARY_DIR}/d3d8.def)
27
28set_module_type(d3d8 win32dll UNICODE)
29target_link_libraries(d3d8 uuid wine)
30add_importlibs(d3d8 d3dwine msvcrt kernel32 ntdll)
31add_pch(d3d8 precomp.h SOURCE)
32add_cd_file(TARGET d3d8 DESTINATION reactos/system32 FOR all)
33