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