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