Synchronize with trunk r58457.
[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 spec2def(wined3d.dll wined3d.spec ADD_IMPORTLIB)
10
11 list(APPEND SOURCE
12 ati_fragment_shader.c
13 arb_program_shader.c
14 buffer.c
15 context.c
16 device.c
17 directx.c
18 drawprim.c
19 gl_compat.c
20 glsl_shader.c
21 nvidia_texture_shader.c
22 palette.c
23 query.c
24 resource.c
25 sampler.c
26 shader.c
27 shader_sm1.c
28 shader_sm4.c
29 state.c
30 stateblock.c
31 surface.c
32 swapchain.c
33 texture.c
34 utils.c
35 vertexdeclaration.c
36 view.c
37 volume.c
38 wined3d_main.c
39 ${CMAKE_CURRENT_BINARY_DIR}/wined3d.def)
40
41 add_library(wined3d SHARED
42 ${SOURCE}
43 version.rc)
44 set_module_type(wined3d win32dll)
45
46 target_link_libraries(wined3d wine)
47
48 add_importlibs(wined3d
49 user32
50 opengl32
51 gdi32
52 advapi32
53 msvcrt
54 kernel32
55 ntdll)
56
57 add_dependencies(wined3d wineheaders)
58 add_pch(wined3d wined3d_private.h)
59 add_cd_file(TARGET wined3d DESTINATION reactos/system32 FOR all)
60
61 if(NOT MSVC)
62 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
63 #allow_warnings(wined3d)
64 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
65 endif()