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    SHGetComputerDisplayNameW.cpp
35    SHGetUnreadMailCountW.cpp
36    SHIsBadInterfacePtr.cpp
37    SHParseDisplayName.cpp
38    SHRestricted.cpp
39    SHShouldShowWizards.cpp
40    SHEnumerateUnreadMailAccountsW.cpp
41    She.cpp
42    ShellExec_RunDLL.cpp
43    ShellExecCmdLine.cpp
44    ShellExecuteEx.cpp
45    ShellExecuteW.cpp
46    ShellHook.cpp
47    ShellInfo.cpp
48    ShellState.cpp
49    SHGetAttributesFromDataObject.cpp
50    SHGetUserDisplayName.cpp
51    SHLimitInputEdit.cpp
52    SHSetUnreadMailCountW.cpp
53    StrRStr.cpp
54    menu.cpp
55    shelltest.cpp)
56
57list(APPEND PCH_SKIP_SOURCE
58    testlist.c)
59
60add_executable(shell32_apitest
61    ${SOURCE}
62    ${PCH_SKIP_SOURCE}
63    resource.rc
64    ${CMAKE_CURRENT_BINARY_DIR}/shell32_apitest.def)
65
66set_target_properties(shell32_apitest
67    PROPERTIES
68    ENABLE_EXPORTS TRUE
69    DEFINE_SYMBOL "")
70
71target_link_libraries(shell32_apitest wine uuid ${PSEH_LIB} cpprt atl_classes)
72set_module_type(shell32_apitest win32cui)
73target_compile_definitions(shell32_apitest PRIVATE UNICODE _UNICODE)
74add_importlibs(shell32_apitest user32 gdi32 shell32 shlwapi ole32 oleaut32 advapi32 shlwapi msvcrt kernel32 ntdll)
75add_pch(shell32_apitest shelltest.h "${PCH_SKIP_SOURCE}")
76add_rostests_file(TARGET shell32_apitest)
77
78# shell32_apitest_sub.exe
79add_executable(shell32_apitest_sub shell32_apitest_sub.cpp)
80target_link_libraries(shell32_apitest_sub cpprt atl_classes)
81set_module_type(shell32_apitest_sub win32gui UNICODE)
82add_importlibs(shell32_apitest_sub msvcrt kernel32 user32 shell32 shlwapi ole32)
83add_rostests_file(TARGET shell32_apitest_sub SUBDIR testdata)
84