[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
[reactos.git] / modules / rostests / winetests / windowscodecs / CMakeLists.txt
1
2 add_definitions(
3 -DUSE_WINE_TODOS
4 -DWINETEST_USE_DBGSTR_LONGLONG)
5
6 list(APPEND SOURCE
7 bitmap.c
8 bmpformat.c
9 converter.c
10 gifformat.c
11 icoformat.c
12 info.c
13 jpegformat.c
14 metadata.c
15 palette.c
16 pngformat.c
17 propertybag.c
18 stream.c
19 tiffformat.c)
20
21 list(APPEND PCH_SKIP_SOURCE
22 guid.c
23 testlist.c)
24
25 add_executable(windowscodecs_winetest
26 ${SOURCE}
27 ${PCH_SKIP_SOURCE})
28
29 set_module_type(windowscodecs_winetest win32cui)
30 add_importlibs(windowscodecs_winetest windowscodecs oleaut32 ole32 propsys user32 gdi32 shlwapi msvcrt kernel32)
31
32 if(MSVC)
33 add_importlibs(windowscodecs_winetest ntdll)
34 endif()
35
36 add_pch(windowscodecs_winetest precomp.h "${PCH_SKIP_SOURCE}")
37 add_rostests_file(TARGET windowscodecs_winetest)