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    exception.c
12    file.c
13    info.c
14    large_int.c
15    om.c
16    path.c
17    pipe.c
18    port.c
19    process.c
20    reg.c
21    rtl.c
22    rtlbitmap.c
23    rtlstr.c
24    string.c
25    testlist.c
26    time.c)
27
28if(ARCH STREQUAL "i386")
29    list(APPEND SOURCE
30        generated.c)
31endif()
32
33add_executable(ntdll_winetest
34    ${SOURCE})
35
36target_link_libraries(ntdll_winetest pseh)
37
38if(MSVC AND ARCH STREQUAL "amd64")
39    # warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
40    target_compile_options(ntdll_winetest PRIVATE /wd4334)
41endif()
42
43if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
44    target_compile_options(ntdll_winetest PRIVATE "-Wno-format")
45endif()
46
47set_module_type(ntdll_winetest win32cui)
48add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
49add_rostests_file(TARGET ntdll_winetest)
50