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