1 2add_definitions(-D__WINESRC__) 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 d3drm_private.h) 19 20add_library(d3drm SHARED 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 d3drm_private.h SOURCE) 30add_cd_file(TARGET d3drm DESTINATION reactos/system32 FOR all) 31