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