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

40 lines
836 B
CMake

add_definitions(-DUSE_WINE_TODOS)
list(APPEND SOURCE
clipboard.c
compobj.c
defaulthandler.c
dragdrop.c
errorinfo.c
hglobalstream.c
marshal.c
moniker.c
ole2.c
ole_server.c
propvariant.c
stg_prop.c
storage32.c
usrmarshal.c)
list(APPEND PCH_SKIP_SOURCE
testlist.c)
add_executable(ole32_winetest
${SOURCE}
${PCH_SKIP_SOURCE})
target_link_libraries(ole32_winetest uuid)
set_module_type(ole32_winetest win32cui)
add_importlibs(ole32_winetest oleaut32 ole32 user32 gdi32 advapi32 msvcrt kernel32)
if(MSVC)
add_importlibs(ole32_winetest ntdll)
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(ole32_winetest PRIVATE -Wno-format-overflow)
endif()
add_pch(ole32_winetest precomp.h "${PCH_SKIP_SOURCE}")
add_rostests_file(TARGET ole32_winetest)