1
2spec2def(shell32_apitest.exe shell32_apitest.spec)
3
4list(APPEND SOURCE
5    closewnd.cpp
6    AddCommas.cpp
7    CFSFolder.cpp
8    CheckEscapes.cpp
9    CIDLData.cpp
10    CMyComputer.cpp
11    CommandLineToArgvW.cpp
12    CShellDesktop.cpp
13    CShellLink.cpp
14    CUserNotification.cpp
15    Control_RunDLLW.cpp
16    DragDrop.cpp
17    ExtractIconEx.cpp
18    FindExecutable.cpp
19    GetDisplayNameOf.cpp
20    GUIDFromString.cpp
21    Int64ToString.cpp
22    IShellFolderViewCB.cpp
23    ItemIDList.cpp
24    OpenAs_RunDLL.cpp
25    PathIsEqualOrSubFolder.cpp
26    PathIsTemporary.cpp
27    PathResolve.cpp
28    RealShellExecuteEx.cpp
29    SHAppBarMessage.cpp
30    SHChangeNotify.cpp
31    SHCreateDataObject.cpp
32    SHCreateFileDataObject.cpp
33    SHCreateFileExtractIconW.cpp
34    SHParseDisplayName.cpp
35    SHRestricted.cpp
36    She.cpp
37    ShellExecCmdLine.cpp
38    ShellExecuteEx.cpp
39    ShellExecuteW.cpp
40    ShellHook.cpp
41    ShellInfo.cpp
42    ShellState.cpp
43    SHGetAttributesFromDataObject.cpp
44    SHLimitInputEdit.cpp
45    menu.cpp
46    shelltest.cpp)
47
48list(APPEND PCH_SKIP_SOURCE
49    testlist.c)
50
51add_executable(shell32_apitest
52    ${SOURCE}
53    ${PCH_SKIP_SOURCE}
54    resource.rc
55    ${CMAKE_CURRENT_BINARY_DIR}/shell32_apitest.def)
56
57set_target_properties(shell32_apitest
58    PROPERTIES
59    ENABLE_EXPORTS TRUE
60    DEFINE_SYMBOL "")
61
62target_link_libraries(shell32_apitest wine uuid ${PSEH_LIB} cpprt atl_classes)
63set_module_type(shell32_apitest win32cui)
64target_compile_definitions(shell32_apitest PRIVATE UNICODE _UNICODE)
65add_importlibs(shell32_apitest user32 gdi32 shell32 shlwapi ole32 oleaut32 advapi32 shlwapi msvcrt kernel32 ntdll)
66add_pch(shell32_apitest shelltest.h "${PCH_SKIP_SOURCE}")
67add_rostests_file(TARGET shell32_apitest)
68
69# shell32_apitest_sub.exe
70add_executable(shell32_apitest_sub shell32_apitest_sub.cpp)
71target_link_libraries(shell32_apitest_sub cpprt atl_classes)
72set_module_type(shell32_apitest_sub win32gui UNICODE)
73add_importlibs(shell32_apitest_sub msvcrt kernel32 user32 shell32 shlwapi ole32)
74add_rostests_file(TARGET shell32_apitest_sub SUBDIR testdata)
75