[3RDPARTY] Suppress MSVC printf format warnings in 3rd-party code
[reactos.git] / modules / rostests / winetests / kernel32 / 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(-DWINVER=0x600 -D_WIN32_WINNT=0x601)
5
6 if(MSVC)
7 # Disable warning C4477 (printf format warnings)
8 add_compile_flags("/wd4477")
9 endif()
10
11 list(APPEND SOURCE
12 actctx.c
13 atom.c
14 change.c
15 codepage.c
16 comm.c
17 console.c
18 debugger.c
19 directory.c
20 drive.c
21 environ.c
22 fiber.c
23 file.c
24 format_msg.c
25 #generated.c
26 heap.c
27 loader.c
28 locale.c
29 mailslot.c
30 module.c
31 path.c
32 pipe.c
33 process.c
34 profile.c
35 resource.c
36 sync.c
37 thread.c
38 time.c
39 timer.c
40 toolhelp.c
41 version.c
42 virtual.c
43 volume.c
44 precomp.h)
45
46 add_executable(kernel32_winetest
47 ${SOURCE}
48 testlist.c
49 resource.rc)
50
51 if(USE_CLANG_CL OR (NOT MSVC))
52 add_target_compile_flags(kernel32_winetest "-Wno-format")
53 endif()
54
55 set_module_type(kernel32_winetest win32cui)
56 add_importlibs(kernel32_winetest user32 advapi32 msvcrt kernel32 ntdll)
57 add_pch(kernel32_winetest precomp.h SOURCE)
58 add_rostests_file(TARGET kernel32_winetest)