[WINED3D]
[reactos.git] / reactos / 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 shader.c
26 shader_sm1.c
27 shader_sm4.c
28 state.c
29 stateblock.c
30 surface.c
31 swapchain.c
32 texture.c
33 utils.c
34 vertexdeclaration.c
35 view.c
36 volume.c
37 wined3d_main.c
38 ${CMAKE_CURRENT_BINARY_DIR}/wined3d.def)
39
40 add_library(wined3d SHARED
41 ${SOURCE}
42 version.rc)
43 set_module_type(wined3d win32dll ENTRYPOINT 0)
44
45 target_link_libraries(wined3d wine)
46
47 add_importlibs(wined3d
48 user32
49 opengl32
50 gdi32
51 advapi32
52 msvcrt
53 kernel32
54 ntdll)
55
56 add_dependencies(wined3d wineheaders)
57 add_pch(wined3d wined3d_private.h)
58 add_cd_file(TARGET wined3d DESTINATION reactos/system32 FOR all)
59
60 if(NOT MSVC)
61 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
62 #allow_warnings(wined3d)
63 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
64 endif()