1
2include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
3remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
4add_definitions(-DWINVER=0x600 -D_WIN32_WINNT=0x601)
5
6if(MSVC)
7    # Disable warning C4477 (printf format warnings)
8    add_compile_flags("/wd4477")
9endif()
10
11list(APPEND SOURCE
12    actctx.c
13    atom.c
14    change.c
15    codepage.c
16    comm.c
17    console.c
18    debugger.c
19    directory.c
20    drive.c
21    environ.c
22    fiber.c
23    file.c
24    format_msg.c
25    #generated.c
26    heap.c
27    loader.c
28    locale.c
29    mailslot.c
30    module.c
31    path.c
32    pipe.c
33    process.c
34    profile.c
35    resource.c
36    sync.c
37    thread.c
38    time.c
39    timer.c
40    toolhelp.c
41    version.c
42    virtual.c
43    volume.c
44    precomp.h)
45
46add_executable(kernel32_winetest
47    ${SOURCE}
48    testlist.c
49    resource.rc)
50
51if(USE_CLANG_CL OR (NOT MSVC))
52    add_target_compile_flags(kernel32_winetest "-Wno-format")
53endif()
54
55set_module_type(kernel32_winetest win32cui)
56add_importlibs(kernel32_winetest user32 advapi32 msvcrt kernel32 ntdll)
57add_pch(kernel32_winetest precomp.h SOURCE)
58add_rostests_file(TARGET kernel32_winetest)
59