2e9a5ef2d22b92c5d67a5f47f4d3e9d18e95511c
[reactos.git] / modules / rostests / winetests / ntdll / CMakeLists.txt
1
2 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
3 remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
4 add_definitions(-D__WINESRC__ -DWINETEST_USE_DBGSTR_LONGLONG)
5
6 list(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 process.c
21 reg.c
22 rtl.c
23 rtlbitmap.c
24 rtlstr.c
25 string.c
26 time.c
27 ntdll_test.h)
28
29 if(ARCH STREQUAL "i386")
30 list(APPEND SOURCE generated.c)
31 endif()
32
33 add_executable(ntdll_winetest ${SOURCE} testlist.c)
34
35 if(USE_CLANG_CL OR (NOT MSVC))
36 add_target_compile_flags(ntdll_winetest "-Wno-format")
37 endif()
38
39 set_module_type(ntdll_winetest win32cui)
40 add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
41 add_pch(ntdll_winetest ntdll_test.h SOURCE)
42 add_rostests_file(TARGET ntdll_winetest)