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