[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
[reactos.git] / modules / rostests / winetests / gdi32 / CMakeLists.txt
1
2 remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
3
4 list(APPEND SOURCE
5 bitmap.c
6 brush.c
7 clipping.c
8 dc.c
9 dib.c
10 font.c
11 gdiobj.c
12 generated.c
13 icm.c
14 mapping.c
15 metafile.c
16 palette.c
17 path.c
18 pen.c)
19
20 list(APPEND PCH_SKIP_SOURCE
21 testlist.c)
22
23 add_executable(gdi32_winetest
24 ${SOURCE}
25 ${PCH_SKIP_SOURCE}
26 resource.rc)
27
28 set_module_type(gdi32_winetest win32cui)
29 add_importlibs(gdi32_winetest gdi32 user32 advapi32 msvcrt kernel32)
30
31 if(MSVC)
32 add_importlibs(gdi32_winetest ntdll)
33 endif()
34
35 add_pch(gdi32_winetest precomp.h "${PCH_SKIP_SOURCE}")
36 add_rostests_file(TARGET gdi32_winetest)