reactos/modules/rostests/winetests/setupapi/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

23 lines
565 B
CMake

list(APPEND SOURCE
devinst.c
dialog.c
diskspace.c
install.c
misc.c
parser.c
query.c
setupcab.c
stringtable.c
testlist.c)
add_executable(setupapi_winetest ${SOURCE} setupapi.rc)
set_module_type(setupapi_winetest win32cui)
target_link_libraries(setupapi_winetest uuid)
add_importlibs(setupapi_winetest advapi32 setupapi user32 shell32 msvcrt kernel32 ntdll)
add_rostests_file(TARGET setupapi_winetest)
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(setupapi_winetest PRIVATE -Wno-format-overflow)
endif()