1
2remove_definitions(-DWINVER=0x502 -D_WIN32_WINNT=0x502)
3add_definitions(-DWINVER=0x602 -D_WIN32_WINNT=0x602)
4
5list(APPEND SOURCE
6    broadcast.c
7    class.c
8    clipboard.c
9    combo.c
10    cursoricon.c
11    dce.c
12    dde.c
13    dialog.c
14    edit.c
15    generated.c
16    input.c
17    listbox.c
18    menu.c
19    monitor.c
20    msg.c
21    rawinput.c
22    resource.c
23    scroll.c
24    static.c
25    sysparams.c
26    text.c
27    uitools.c
28    win.c
29    winstation.c
30    wsprintf.c)
31
32list(APPEND PCH_SKIP_SOURCE
33    testlist.c)
34
35add_executable(user32_winetest
36    ${SOURCE}
37    ${PCH_SKIP_SOURCE}
38    resource.rc)
39
40if(MSVC)
41    # Disable warning C4477 (printf format warnings)
42    target_compile_options(user32_winetest PRIVATE /wd4477)
43elseif(GCC)
44    target_compile_options(user32_winetest PRIVATE -Wno-format-overflow)
45endif()
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