1 2remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502) 3 4list(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 20list(APPEND PCH_SKIP_SOURCE 21 testlist.c) 22 23add_executable(gdi32_winetest 24 ${SOURCE} 25 ${PCH_SKIP_SOURCE} 26 resource.rc) 27 28if(MSVC AND ARCH STREQUAL "amd64") 29 # warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) 30 target_compile_options(gdi32_winetest PRIVATE /wd4334) 31endif() 32 33set_module_type(gdi32_winetest win32cui) 34add_importlibs(gdi32_winetest gdi32 gdi32_vista user32 advapi32 msvcrt kernel32) 35 36if(MSVC) 37 add_importlibs(gdi32_winetest ntdll) 38endif() 39 40add_pch(gdi32_winetest precomp.h "${PCH_SKIP_SOURCE}") 41add_rostests_file(TARGET gdi32_winetest) 42