reactos/modules/rostests/winetests/user32/CMakeLists.txt
Victor Perevertkin 74ec94e12c [CMAKE] Some options are only supported by GCC, don't use them for clang
These are (so far):
-Wno-format-overflow
-Wno-nonnull-compare
-Wno-old-style-declaration
-Wno-unused-but-set-variable
2021-04-09 03:58:19 +03:00

54 lines
1.1 KiB
CMake

remove_definitions(-DWINVER=0x502 -D_WIN32_WINNT=0x502)
add_definitions(-DWINVER=0x602 -D_WIN32_WINNT=0x602)
list(APPEND SOURCE
broadcast.c
class.c
clipboard.c
combo.c
cursoricon.c
dce.c
dde.c
dialog.c
edit.c
generated.c
input.c
listbox.c
menu.c
monitor.c
msg.c
rawinput.c
resource.c
scroll.c
static.c
sysparams.c
text.c
uitools.c
win.c
winstation.c
wsprintf.c)
list(APPEND PCH_SKIP_SOURCE
testlist.c)
add_executable(user32_winetest
${SOURCE}
${PCH_SKIP_SOURCE}
resource.rc)
if(MSVC)
# Disable warning C4477 (printf format warnings)
remove_target_compile_option(user32_winetest "/we4477")
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(user32_winetest PRIVATE -Wno-format-overflow)
endif()
add_pch(user32_winetest precomp.h "${PCH_SKIP_SOURCE}")
# some tests need to be run from an app compiled as GUI
set_module_type(user32_winetest win32gui)
add_importlibs(user32_winetest user32 gdi32 advapi32 msvcrt kernel32)
add_rostests_file(TARGET user32_winetest)