[3RDPARTY] Make some warnings non-fatal
[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 -Dcopysignf=_copysignf)
7
8 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
9
10 if(MSVC)
11 # error C4312: 'type cast': conversion from 'LONG' to 'void *' of greater size
12 replace_compile_flags("/we4312" " ")
13 endif()
14
15 # We name this d3dwine.dll, because the Virtualbox additions ship with a custom wined3d.dll
16 # and it breaks everything if it is installed.
17 spec2def(d3dwine.dll wined3d.spec ADD_IMPORTLIB)
18
19 list(APPEND SOURCE
20 arb_program_shader.c
21 ati_fragment_shader.c
22 buffer.c
23 context.c
24 cs.c
25 device.c
26 directx.c
27 dxtn.c
28 gl_compat.c
29 glsl_shader.c
30 nvidia_texture_shader.c
31 palette.c
32 query.c
33 resource.c
34 sampler.c
35 shader.c
36 shader_sm1.c
37 shader_sm4.c
38 state.c
39 stateblock.c
40 surface.c
41 swapchain.c
42 texture.c
43 utils.c
44 vertexdeclaration.c
45 view.c
46 wined3d_main.c
47 precomp.h)
48
49 add_library(d3dwine MODULE
50 ${SOURCE}
51 version.rc
52 ${CMAKE_CURRENT_BINARY_DIR}/d3dwine.def)
53
54 set_module_type(d3dwine win32dll)
55 target_link_libraries(d3dwine wine)
56 add_importlibs(d3dwine user32 opengl32 gdi32 advapi32 msvcrt kernel32 ntdll)
57 add_pch(d3dwine precomp.h SOURCE)
58 add_cd_file(TARGET d3dwine DESTINATION reactos/system32 FOR all)