07e77e2e8d0e58da3794c3992a7048ef3e177a97
[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 if(ARCH MATCHES amd64)
41 list(APPEND SOURCE
42 powf.c
43 sqrtf.c)
44 endif()
45
46 add_library(wined3d SHARED
47 ${SOURCE}
48 version.rc)
49 set_module_type(wined3d win32dll ENTRYPOINT 0)
50
51 target_link_libraries(wined3d wine)
52
53 add_importlibs(wined3d
54 user32
55 opengl32
56 gdi32
57 advapi32
58 msvcrt
59 kernel32
60 ntdll)
61
62 add_dependencies(wined3d wineheaders)
63 add_pch(wined3d wined3d_private.h)
64 add_cd_file(TARGET wined3d DESTINATION reactos/system32 FOR all)
65
66 if(NOT MSVC)
67 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
68 #allow_warnings(wined3d)
69 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
70 endif()