sync with trunk r49322
[reactos.git] / dll / directx / wine / d3d9 / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(-D__WINESRC__)
5 add_definitions(-DUSE_WIN32_OPENGL)
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 spec2def(d3d9 ${CMAKE_CURRENT_SOURCE_DIR}/d3d9.spec ${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
9
10 add_library(d3d9 SHARED
11 cubetexture.c
12 d3d9_main.c
13 device.c
14 directx.c
15 indexbuffer.c
16 pixelshader.c
17 query.c
18 stateblock.c
19 surface.c
20 swapchain.c
21 texture.c
22 vertexbuffer.c
23 vertexdeclaration.c
24 vertexshader.c
25 volume.c
26 volumetexture.c
27 version.rc)
28
29 set_module_type(d3d9 win32dll)
30
31 target_link_libraries(d3d9
32 ${CMAKE_CURRENT_BINARY_DIR}/d3d9.def
33 uuid
34 wine)
35
36 add_importlibs(d3d9
37 user32
38 gdi32
39 advapi32
40 wined3d)
41
42 add_dependencies(d3d9 d3d9_def wineheaders)
43 add_livecd_target(d3d9 reactos/system32)