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