1 2add_definitions( 3 -DUSE_WINE_TODOS 4 -DWINETEST_USE_DBGSTR_LONGLONG) 5 6# to be removed after synching with newer Wine 7if(GCC AND GCC_VERSION VERSION_GREATER 7) 8 add_compile_flags("-Wno-stringop-overflow") 9endif() 10 11list(APPEND SOURCE 12 bitmap.c 13 bmpformat.c 14 converter.c 15 gifformat.c 16 icoformat.c 17 info.c 18 jpegformat.c 19 metadata.c 20 palette.c 21 pngformat.c 22 propertybag.c 23 stream.c 24 tiffformat.c 25 precomp.h) 26 27add_executable(windowscodecs_winetest 28 ${SOURCE} 29 guid.c 30 testlist.c) 31 32set_module_type(windowscodecs_winetest win32cui) 33add_importlibs(windowscodecs_winetest windowscodecs oleaut32 ole32 propsys user32 gdi32 shlwapi msvcrt kernel32) 34 35if(MSVC) 36 add_importlibs(windowscodecs_winetest ntdll) 37endif() 38 39add_pch(windowscodecs_winetest precomp.h SOURCE) 40add_rostests_file(TARGET windowscodecs_winetest) 41