[CMAKE]
[reactos.git] / dll / directx / wine / wined3d / CMakeLists.txt
1 set_rc_compiler()
2
3 spec2def(wined3.dll wined3d.spec)
4
5 list(APPEND SOURCE
6 ati_fragment_shader.c
7 arb_program_shader.c
8 basetexture.c
9 buffer.c
10 clipper.c
11 context.c
12 cubetexture.c
13 device.c
14 directx.c
15 drawprim.c
16 gl_compat.c
17 glsl_shader.c
18 nvidia_texture_shader.c
19 palette.c
20 query.c
21 resource.c
22 shader.c
23 shader_sm1.c
24 shader_sm4.c
25 state.c
26 stateblock.c
27 surface_base.c
28 surface.c
29 surface_gdi.c
30 swapchain.c
31 swapchain_base.c
32 swapchain_gdi.c
33 texture.c
34 utils.c
35 vertexdeclaration.c
36 view.c
37 volume.c
38 volumetexture.c
39 wined3d_main.c
40 version.rc
41 ${CMAKE_CURRENT_BINARY_DIR}/wined3d.def)
42
43 if(ARCH MATCHES amd64)
44 list(APPEND SOURCE
45 powf.c
46 sqrtf.c)
47 endif()
48
49 add_definitions(
50 -D__WINESRC__
51 -DUSE_WIN32_OPENGL)
52
53 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
54
55 add_library(wined3d SHARED ${SOURCE})
56 set_module_type(wined3d win32dll)
57
58 target_link_libraries(wined3d wine uuid)
59
60 add_importlibs(wined3d
61 user32
62 opengl32
63 gdi32
64 advapi32
65 msvcrt
66 kernel32
67 ntdll)
68
69 add_dependencies(wined3d wineheaders)
70 add_cab_target(wined3d 1)
71 add_importlib_target(wined3d.spec)