[CMAKE] winetests/: Move '/wd4334' to 3 sub-modules only
[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 target_link_libraries(ntdll_winetest pseh)
40
41 if(MSVC AND ARCH STREQUAL "amd64")
42 # warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
43 target_compile_options(ntdll_winetest PRIVATE /wd4334)
44 endif()
45
46 if(USE_CLANG_CL OR (NOT MSVC))
47 target_compile_options(ntdll_winetest PRIVATE "-Wno-format")
48 endif()
49
50 set_module_type(ntdll_winetest win32cui)
51 add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
52 add_pch(ntdll_winetest precomp.h "${PCH_SKIP_SOURCE}")
53 add_rostests_file(TARGET ntdll_winetest)