0bbc8d33a1f8fef23fe612ac72555ac041e385a5
[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 testlist.c)
28
29 if(ARCH STREQUAL "i386")
30 list(APPEND SOURCE
31 generated.c
32 )
33 endif()
34
35 add_executable(ntdll_winetest ${SOURCE})
36
37 if(USE_CLANG_CL OR (NOT MSVC))
38 add_target_compile_flags(ntdll_winetest "-Wno-format")
39 endif()
40
41 set_module_type(ntdll_winetest win32cui)
42 add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
43 add_rostests_file(TARGET ntdll_winetest)