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

49 lines
1 KiB
CMake

add_definitions(-DWINETEST_USE_DBGSTR_LONGLONG)
remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
list(APPEND SOURCE
appbar.c
assoc.c
autocomplete.c
brsfolder.c
ebrowser.c
generated.c
progman_dde.c
recyclebin.c
shelldispatch.c
shelllink.c
shellole.c
shellpath.c
shfldr_special.c
shlexec.c
shlfileop.c
shlfolder.c
shlview.c
string.c
systray.c)
list(APPEND PCH_SKIP_SOURCE
testlist.c)
add_executable(shell32_winetest
${SOURCE}
${PCH_SKIP_SOURCE}
rsrc.rc)
target_link_libraries(shell32_winetest uuid)
set_module_type(shell32_winetest win32cui)
add_importlibs(shell32_winetest shell32 shlwapi ole32 oleaut32 user32 gdi32 advapi32 msvcrt kernel32)
if(MSVC)
add_importlibs(shell32_winetest ntdll)
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(shell32_winetest PRIVATE -Wno-format-overflow)
endif()
add_pch(shell32_winetest precomp.h "${PCH_SKIP_SOURCE}")
add_rostests_file(TARGET shell32_winetest)