1
2add_definitions(-D__WINESRC__)
3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4spec2def(dxdiagn.dll dxdiagn.spec)
5
6list(APPEND SOURCE
7    container.c
8    dxdiag_main.c
9    provider.c
10    precomp.h)
11
12add_library(dxdiagn MODULE
13    ${SOURCE}
14    guid.c
15    dxdiagn.rc
16    ${CMAKE_CURRENT_BINARY_DIR}/dxdiagn.def)
17
18set_module_type(dxdiagn win32dll)
19target_link_libraries(dxdiagn strmiids dxguid uuid wine)
20add_dependencies(dxdiagn wineheaders)
21add_importlibs(dxdiagn d3d9 ddraw version ole32 oleaut32 psapi user32 dsound msvcrt kernel32 ntdll)
22add_pch(dxdiagn precomp.h SOURCE)
23add_cd_file(TARGET dxdiagn DESTINATION reactos/system32 FOR all)
24