[D3D8][D3D9][DDRAW][WINED3D] Use modules instead of shared libraries
[reactos.git] / dll / directx / wine / d3d8 / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -DUSE_WIN32_OPENGL)
5
6 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7 spec2def(d3d8.dll d3d8.spec)
8
9 list(APPEND SOURCE
10 buffer.c
11 d3d8_main.c
12 device.c
13 directx.c
14 shader.c
15 surface.c
16 swapchain.c
17 texture.c
18 vertexdeclaration.c
19 volume.c
20 precomp.h)
21
22 add_library(d3d8 MODULE
23 ${SOURCE}
24 guid.c
25 version.rc
26 ${CMAKE_CURRENT_BINARY_DIR}/d3d8.def)
27
28 set_module_type(d3d8 win32dll UNICODE)
29 target_link_libraries(d3d8 uuid wine)
30 add_importlibs(d3d8 d3dwine msvcrt kernel32 ntdll)
31 add_pch(d3d8 precomp.h SOURCE)
32 add_cd_file(TARGET d3d8 DESTINATION reactos/system32 FOR all)