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