[SYSDM] Addendum CORE-17429
[reactos.git] / modules / rostests / winetests / ntdll / CMakeLists.txt
1
2 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
3 add_definitions(-D__WINESRC__ -DWINETEST_USE_DBGSTR_LONGLONG)
4
5 list(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
26 if(ARCH STREQUAL "i386")
27 list(APPEND SOURCE
28 exception.c
29 generated.c)
30 endif()
31
32 list(APPEND PCH_SKIP_SOURCE
33 testlist.c)
34
35 add_executable(ntdll_winetest
36 ${SOURCE}
37 ${PCH_SKIP_SOURCE})
38
39 if(USE_CLANG_CL OR (NOT MSVC))
40 target_compile_options(ntdll_winetest PRIVATE "-Wno-format")
41 endif()
42
43 set_module_type(ntdll_winetest win32cui)
44 add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
45 add_pch(ntdll_winetest precomp.h "${PCH_SKIP_SOURCE}")
46 add_rostests_file(TARGET ntdll_winetest)