[CMAKE] Use modules instead of shared libraries
[reactos.git] / dll / directx / wine / d3dcompiler_43 / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -DDIRECT3D_VERSION=0x0900)
5
6 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7 spec2def(d3dcompiler_43.dll d3dcompiler_43.spec ADD_IMPORTLIB)
8
9 list(APPEND SOURCE
10 asmparser.c
11 asmshader.tab.c
12 asmshader.yy.c
13 blob.c
14 bytecodewriter.c
15 compiler.c
16 hlsl.tab.c
17 hlsl.yy.c
18 main.c
19 reflection.c
20 utils.c
21 precomp.h
22 ${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43_stubs.c)
23
24 add_library(d3dcompiler_43 MODULE
25 ${SOURCE}
26 version.rc
27 ${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43.def)
28
29 set_module_type(d3dcompiler_43 win32dll)
30 target_link_libraries(d3dcompiler_43 dx10guid uuid wine wpp)
31 add_importlibs(d3dcompiler_43 msvcrt kernel32 ntdll)
32 add_dependencies(d3dcompiler_43 d3d_idl_headers)
33 add_pch(d3dcompiler_43 precomp.h SOURCE)
34 add_cd_file(TARGET d3dcompiler_43 DESTINATION reactos/system32 FOR all)