1
2include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
3add_definitions(-D__WINESRC__ -DWINETEST_USE_DBGSTR_LONGLONG)
4
5list(APPEND SOURCE
6    atom.c
7    change.c
8    directory.c
9    env.c
10    error.c
11    file.c
12    info.c
13    large_int.c
14    om.c
15    path.c
16    pipe.c
17    port.c
18    process.c
19    reg.c
20    rtl.c
21    rtlbitmap.c
22    rtlstr.c
23    string.c
24    time.c)
25
26if(ARCH STREQUAL "i386")
27    list(APPEND SOURCE
28        exception.c
29        generated.c)
30endif()
31
32list(APPEND PCH_SKIP_SOURCE
33    testlist.c)
34
35add_executable(ntdll_winetest
36    ${SOURCE}
37    ${PCH_SKIP_SOURCE})
38
39if(USE_CLANG_CL OR (NOT MSVC))
40    target_compile_options(ntdll_winetest PRIVATE "-Wno-format")
41endif()
42
43set_module_type(ntdll_winetest win32cui)
44add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
45add_pch(ntdll_winetest precomp.h "${PCH_SKIP_SOURCE}")
46add_rostests_file(TARGET ntdll_winetest)
47