Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[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__)
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 reg.c
21 rtl.c
22 rtlbitmap.c
23 rtlstr.c
24 string.c
25 time.c
26 testlist.c)
27
28 if(ARCH STREQUAL "i386")
29 list(APPEND SOURCE
30 generated.c
31 )
32 endif()
33
34 add_executable(ntdll_winetest ${SOURCE})
35 set_module_type(ntdll_winetest win32cui)
36 add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
37 add_rostests_file(TARGET ntdll_winetest)
38
39 if(NOT MSVC)
40 add_target_compile_flags(ntdll_winetest "-Wno-format")
41 endif()