[CMAKE]
[reactos.git] / reactos / dll / directx / wine / d3d9 / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(
5 -D__WINESRC__
6 -DUSE_WIN32_OPENGL)
7
8 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
9
10 if(MSVC)
11 add_definitions(-FImsvchelper.h)
12 endif()
13
14 set_rc_compiler()
15
16 spec2def(d3d9.dll d3d9.spec)
17
18 list(APPEND SOURCE
19 buffer.c
20 cubetexture.c
21 d3d9_main.c
22 device.c
23 directx.c
24 query.c
25 shader.c
26 stateblock.c
27 surface.c
28 swapchain.c
29 texture.c
30 vertexdeclaration.c
31 volume.c
32 volumetexture.c
33 version.rc
34 ${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c
35 ${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
36
37 add_library(d3d9 SHARED ${SOURCE})
38
39 set_module_type(d3d9 win32dll)
40
41 target_link_libraries(d3d9 uuid wine)
42
43 add_importlibs(d3d9
44 user32
45 gdi32
46 advapi32
47 wined3d
48 msvcrt
49 kernel32
50 ntdll)
51
52 add_dependencies(d3d9 wineheaders)
53 add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all)
54 add_importlib_target(d3d9.spec)