1 2list(APPEND SOURCE 3 info.c 4 install.c 5 testlist.c) 6 7add_executable(version_winetest ${SOURCE} version.rc) 8set_module_type(version_winetest win32cui) 9add_importlibs(version_winetest shell32 version msvcrt kernel32) 10 11target_compile_definitions(version_winetest PRIVATE USE_WINE_TODOS) 12 13if(MSVC) 14 add_importlibs(version_winetest ntdll) 15endif() 16 17if(CMAKE_C_COMPILER_ID STREQUAL "GNU") 18 target_compile_options(version_winetest PRIVATE -Wno-format-overflow) 19endif() 20 21add_rostests_file(TARGET version_winetest) 22