1
2add_definitions(-D__WINESRC__)
3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4spec2def(d3dx9_40.dll d3dx9_40.spec)
5
6list(APPEND SOURCE
7    d3dx9_40_main.c
8    ${CMAKE_CURRENT_BINARY_DIR}/d3dx9_40.def)
9
10add_library(d3dx9_40 SHARED ${SOURCE} version.rc)
11set_module_type(d3dx9_40 win32dll)
12target_link_libraries(d3dx9_40 wine)
13add_importlibs(d3dx9_40 d3dx9_36 msvcrt kernel32 ntdll)
14add_cd_file(TARGET d3dx9_40 DESTINATION reactos/system32 FOR all)
15