4bd525338c4f8c3b28cd992726ec770169579273
[reactos.git] / modules / rostests / winetests / user32 / CMakeLists.txt
1
2 remove_definitions(-DWINVER=0x502 -D_WIN32_WINNT=0x502)
3 add_definitions(-DWINVER=0x602 -D_WIN32_WINNT=0x602)
4
5 if(MSVC)
6 # Disable warning C4477 (printf format warnings)
7 add_compile_flags("/wd4477")
8 elseif(GCC AND GCC_VERSION VERSION_GREATER 7)
9 add_compile_flags("-Wno-format-overflow")
10 endif()
11
12 list(APPEND SOURCE
13 broadcast.c
14 class.c
15 clipboard.c
16 combo.c
17 cursoricon.c
18 dce.c
19 dde.c
20 dialog.c
21 edit.c
22 generated.c
23 input.c
24 listbox.c
25 menu.c
26 monitor.c
27 msg.c
28 rawinput.c
29 resource.c
30 scroll.c
31 static.c
32 sysparams.c
33 text.c
34 uitools.c
35 win.c
36 winstation.c
37 wsprintf.c
38 precomp.h)
39
40 add_executable(user32_winetest
41 ${SOURCE}
42 testlist.c
43 resource.rc)
44
45 add_pch(user32_winetest precomp.h SOURCE)
46 # some tests need to be run from an app compiled as GUI
47 set_module_type(user32_winetest win32gui)
48 add_importlibs(user32_winetest user32 gdi32 advapi32 msvcrt kernel32)
49 add_rostests_file(TARGET user32_winetest)