1
2add_definitions(-DWINETEST_USE_DBGSTR_LONGLONG)
3
4remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
5
6if(GCC AND GCC_VERSION VERSION_GREATER 7)
7    add_compile_flags("-Wno-format-overflow")
8endif()
9
10list(APPEND SOURCE
11    appbar.c
12    assoc.c
13    autocomplete.c
14    brsfolder.c
15    ebrowser.c
16    generated.c
17    progman_dde.c
18    recyclebin.c
19    shelldispatch.c
20    shelllink.c
21    shellole.c
22    shellpath.c
23    shfldr_special.c
24    shlexec.c
25    shlfileop.c
26    shlfolder.c
27    shlview.c
28    string.c
29    systray.c)
30
31list(APPEND PCH_SKIP_SOURCE
32    testlist.c)
33
34add_executable(shell32_winetest
35    ${SOURCE}
36    ${PCH_SKIP_SOURCE}
37    rsrc.rc)
38
39target_link_libraries(shell32_winetest uuid)
40set_module_type(shell32_winetest win32cui)
41add_importlibs(shell32_winetest shell32 shlwapi ole32 oleaut32 user32 gdi32 advapi32 msvcrt kernel32)
42
43if(MSVC)
44    add_importlibs(shell32_winetest ntdll)
45endif()
46
47add_pch(shell32_winetest precomp.h "${PCH_SKIP_SOURCE}")
48add_rostests_file(TARGET shell32_winetest)
49