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    ShellState.cpp
42    SHGetAttributesFromDataObject.cpp
43    SHLimitInputEdit.cpp
44    menu.cpp
45    shelltest.cpp)
46
47list(APPEND PCH_SKIP_SOURCE
48    testlist.c)
49
50add_executable(shell32_apitest
51    ${SOURCE}
52    ${PCH_SKIP_SOURCE}
53    resource.rc
54    ${CMAKE_CURRENT_BINARY_DIR}/shell32_apitest.def)
55
56set_target_properties(shell32_apitest
57    PROPERTIES
58    ENABLE_EXPORTS TRUE
59    DEFINE_SYMBOL "")
60
61target_link_libraries(shell32_apitest wine uuid ${PSEH_LIB} cpprt atl_classes)
62set_module_type(shell32_apitest win32cui)
63target_compile_definitions(shell32_apitest PRIVATE UNICODE _UNICODE)
64add_importlibs(shell32_apitest user32 gdi32 shell32 shlwapi ole32 oleaut32 advapi32 shlwapi msvcrt kernel32 ntdll)
65add_pch(shell32_apitest shelltest.h "${PCH_SKIP_SOURCE}")
66add_rostests_file(TARGET shell32_apitest)
67
68# shell32_apitest_sub.exe
69add_executable(shell32_apitest_sub shell32_apitest_sub.cpp)
70target_link_libraries(shell32_apitest_sub cpprt atl_classes)
71set_module_type(shell32_apitest_sub win32gui UNICODE)
72add_importlibs(shell32_apitest_sub msvcrt kernel32 user32 shell32 shlwapi ole32)
73add_rostests_file(TARGET shell32_apitest_sub SUBDIR testdata)
74