1c891d3aab37da4fcd0e4e5265fa4bcbf8f3358c
[reactos.git] / rostests / winetests / ntdll / CMakeLists.txt
1
2 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/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 generated.c)
30 endif()
31
32 add_executable(ntdll_winetest ${SOURCE})
33 set_module_type(ntdll_winetest win32cui)
34 add_importlibs(ntdll_winetest user32 msvcrt kernel32 ntdll)
35 add_cd_file(TARGET ntdll_winetest DESTINATION reactos/bin FOR all)
36
37 if(NOT MSVC)
38 add_target_compile_flags(ntdll_winetest "-Wno-format")
39 endif()