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