1
2remove_definitions(-DWINVER=0x502 -D_WIN32_WINNT=0x502)
3add_definitions(-DWINVER=0x602 -D_WIN32_WINNT=0x602)
4
5if(MSVC)
6    # Disable warning C4477 (printf format warnings)
7    add_compile_flags("/wd4477")
8elseif(GCC)
9    add_compile_flags("-Wno-format-overflow")
10endif()
11
12list(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
39list(APPEND PCH_SKIP_SOURCE
40    testlist.c)
41
42add_executable(user32_winetest
43    ${SOURCE}
44    ${PCH_SKIP_SOURCE}
45    resource.rc)
46
47add_pch(user32_winetest precomp.h "${PCH_SKIP_SOURCE}")
48# some tests need to be run from an app compiled as GUI
49set_module_type(user32_winetest win32gui)
50add_importlibs(user32_winetest user32 gdi32 advapi32 msvcrt kernel32)
51add_rostests_file(TARGET user32_winetest)
52