1 2list(APPEND SOURCE 3 cpp.c 4 data.c 5 dir.c 6 environ.c 7 file.c 8 headers.c 9 heap.c 10 locale.c 11 misc.c 12 printf.c 13 scanf.c 14 signal.c 15 string.c 16 time.c) 17 18list(APPEND PCH_SKIP_SOURCE 19 testlist.c) 20 21add_executable(msvcrt_winetest 22 ${SOURCE} 23 ${PCH_SKIP_SOURCE}) 24 25target_compile_definitions(msvcrt_winetest PRIVATE 26 WINETEST_USE_DBGSTR_LONGLONG 27 _CRT_NONSTDC_NO_DEPRECATE 28 __msvcrt_ulong=ULONG) 29 30if ((NOT MSVC) OR USE_CLANG_CL) 31 if (NOT USE_CLANG_CL) 32 target_compile_options(msvcrt_winetest PRIVATE -Wno-stringop-truncation) 33 endif() 34 target_compile_options(msvcrt_winetest PRIVATE -Wno-format) 35endif() 36 37set_module_type(msvcrt_winetest win32cui) 38add_importlibs(msvcrt_winetest advapi32 msvcrt kernel32) 39target_link_libraries(msvcrt_winetest oldnames) 40 41if(MSVC) 42 add_importlibs(msvcrt_winetest ntdll) 43endif() 44 45add_pch(msvcrt_winetest precomp.h "${PCH_SKIP_SOURCE}") 46add_rostests_file(TARGET msvcrt_winetest) 47