1
2add_subdirectory(shlwapi_resource_dll)
3
4# Ensure the resource compiler can find the dll
5include_directories($<TARGET_FILE_DIR:shlwapi_resource_dll>)
6
7list(APPEND SOURCE
8    PathFindOnPath.c
9    PathIsUNC.c
10    PathIsUNCServer.c
11    PathIsUNCServerShare.c
12    PathUnExpandEnvStrings.c
13    PathUnExpandEnvStringsForUser.c
14    SHAreIconsEqual.c
15    SHGetRestriction.c
16    SHLoadIndirectString.c
17    SHLoadRegUIString.c
18    SHPropertyBag.cpp
19    StrFormatByteSizeW.c
20    testdata.rc
21    testlist.c)
22
23# Add a dependency from the resource to the dll
24add_rc_deps(testdata.rc ${CMAKE_CURRENT_BINARY_DIR}/shlwapi_resource_dll/shlwapi_resource_dll.dll)
25
26add_executable(shlwapi_apitest ${SOURCE})
27set_module_type(shlwapi_apitest win32cui)
28target_link_libraries(shlwapi_apitest ${PSEH_LIB} uuid)
29add_importlibs(shlwapi_apitest shlwapi oleaut32 ole32 user32 gdi32 advapi32 msvcrt kernel32)
30add_dependencies(shlwapi_apitest shlwapi_resource_dll)
31add_rostests_file(TARGET shlwapi_apitest)
32