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
11list(APPEND PCH_SKIP_SOURCE
12    guid.c)
13
14add_library(dxdiagn MODULE
15    ${SOURCE}
16    ${PCH_SKIP_SOURCE}
17    dxdiagn.rc
18    ${CMAKE_CURRENT_BINARY_DIR}/dxdiagn.def)
19
20set_module_type(dxdiagn win32dll)
21target_link_libraries(dxdiagn strmiids dxguid uuid wine)
22add_dependencies(dxdiagn wineheaders)
23add_importlibs(dxdiagn d3d9 ddraw version ole32 oleaut32 psapi user32 dsound msvcrt kernel32 ntdll)
24add_pch(dxdiagn precomp.h "${PCH_SKIP_SOURCE}")
25add_cd_file(TARGET dxdiagn DESTINATION reactos/system32 FOR all)
26