xref: /reactos/dll/directx/wine/d3drm/CMakeLists.txt (revision e3e520d1)
1
2add_definitions(-D__WINESRC__ -D__ROS_LONG64__)
3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4spec2def(d3drm.dll d3drm.spec ADD_IMPORTLIB)
5
6list(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    precomp.h)
19
20add_library(d3drm MODULE
21    ${SOURCE}
22    version.rc
23    ${CMAKE_CURRENT_BINARY_DIR}/d3drm_stubs.c
24    ${CMAKE_CURRENT_BINARY_DIR}/d3drm.def)
25
26set_module_type(d3drm win32dll UNICODE)
27target_link_libraries(d3drm dxguid uuid wine)
28add_importlibs(d3drm ddraw d3dxof msvcrt kernel32 ntdll)
29add_pch(d3drm precomp.h SOURCE)
30add_cd_file(TARGET d3drm DESTINATION reactos/system32 FOR all)
31
32if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
33    target_compile_options(d3drm PRIVATE -Wno-incompatible-function-pointer-types)
34endif()
35