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    remove_target_compile_option(user32_winetest "/we4477")
43endif()
44
45if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
46    target_compile_options(user32_winetest PRIVATE -Wno-format-overflow)
47endif()
48
49add_pch(user32_winetest precomp.h "${PCH_SKIP_SOURCE}")
50set_module_type(user32_winetest win32cui)
51add_importlibs(user32_winetest user32 gdi32 advapi32 msvcrt kernel32)
52add_rostests_file(TARGET user32_winetest)
53