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