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(-D__WINESRC__)
5
6list(APPEND SOURCE
7    atom.c
8    change.c
9    directory.c
10    env.c
11    error.c
12    exception.c
13    file.c
14    info.c
15    large_int.c
16    om.c
17    path.c
18    pipe.c
19    port.c
20    reg.c
21    rtl.c
22    rtlbitmap.c
23    rtlstr.c
24    string.c
25    time.c
26    testlist.c)
27
28if(ARCH STREQUAL "i386")
29    list(APPEND SOURCE
30    generated.c
31    )
32endif()
33
34add_executable(ntdll_winetest ${SOURCE})
35set_module_type(ntdll_winetest win32cui)
36add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
37add_rostests_file(TARGET ntdll_winetest)
38
39if(NOT MSVC)
40    add_target_compile_flags(ntdll_winetest "-Wno-format")
41endif()
42