* Sync up to trunk head (r64829).
[reactos.git] / dll / directx / wine / d3dx9_36 / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4 spec2def(d3dx9_36.dll d3dx9_36.spec ADD_IMPORTLIB)
5
6 list(APPEND SOURCE
7 core.c
8 d3dx9_36_main.c
9 effect.c
10 font.c
11 line.c
12 math.c
13 mesh.c
14 render.c
15 shader.c
16 skin.c
17 sprite.c
18 surface.c
19 texture.c
20 util.c
21 volume.c
22 xfile.c
23 d3dx9_36_private.h)
24
25 add_library(d3dx9_36 SHARED
26 ${SOURCE}
27 guid.c
28 version.rc
29 ${CMAKE_CURRENT_BINARY_DIR}/d3dx9_36_stubs.c
30 ${CMAKE_CURRENT_BINARY_DIR}/d3dx9_36.def)
31
32 set_module_type(d3dx9_36 win32dll)
33 add_dependencies(d3dx9_36 d3d_idl_headers)
34 target_link_libraries(d3dx9_36 dxguid wine)
35
36 if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
37 target_link_libraries(d3dx9_36 mingwex)
38 endif()
39
40 add_importlibs(d3dx9_36 d3dcompiler_43 d3dxof user32 ole32 gdi32 msvcrt kernel32 ntdll)
41 add_pch(d3dx9_36 d3dx9_36_private.h SOURCE)
42 add_cd_file(TARGET d3dx9_36 DESTINATION reactos/system32 FOR all)