1 2add_definitions(-DUSE_WINE_TODOS) 3 4list(APPEND SOURCE 5 brush.c 6 customlinecap.c 7 font.c 8 graphics.c 9 graphicspath.c 10 image.c 11 matrix.c 12 metafile.c 13 pathiterator.c 14 pen.c 15 region.c 16 stringformat.c) 17 18list(APPEND PCH_SKIP_SOURCE 19 guid.c 20 testlist.c) 21 22add_executable(gdiplus_winetest 23 ${SOURCE} 24 ${PCH_SKIP_SOURCE} 25 resource.rc) 26 27set_module_type(gdiplus_winetest win32cui) 28add_importlibs(gdiplus_winetest gdiplus user32 gdi32 ole32 msvcrt kernel32) 29add_pch(gdiplus_winetest precomp.h "${PCH_SKIP_SOURCE}") 30add_rostests_file(TARGET gdiplus_winetest) 31 32if(MSVC) 33 # error C4133: 'function': incompatible types - from 'ImageFlags *' to 'UINT *' 34 remove_target_compile_option(gdiplus_winetest "/we4133") 35 target_compile_options(gdiplus_winetest PRIVATE /wd4133) 36endif() 37