[D3DRM] Sync with Wine Staging 1.7.55. CORE-10536
[reactos.git] / reactos / dll / directx / wine / d3drm / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4 spec2def(d3drm.dll d3drm.spec ADD_IMPORTLIB)
5
6 list(APPEND SOURCE
7 d3drm.c
8 d3drm_main.c
9 device.c
10 face.c
11 frame.c
12 light.c
13 material.c
14 math.c
15 meshbuilder.c
16 texture.c
17 viewport.c
18 d3drm_private.h)
19
20 add_library(d3drm SHARED
21 ${SOURCE}
22 version.rc
23 ${CMAKE_CURRENT_BINARY_DIR}/d3drm_stubs.c
24 ${CMAKE_CURRENT_BINARY_DIR}/d3drm.def)
25
26 set_module_type(d3drm win32dll UNICODE)
27 target_link_libraries(d3drm dxguid uuid wine)
28
29 if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
30 target_link_libraries(d3drm mingwex)
31 endif()
32
33 add_importlibs(d3drm ddraw d3dxof msvcrt kernel32 ntdll)
34 add_pch(d3drm d3drm_private.h SOURCE)
35 add_cd_file(TARGET d3drm DESTINATION reactos/system32 FOR all)