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    SHLoadIndirectString.c
16    StrFormatByteSizeW.c
17    testdata.rc
18    testlist.c)
19
20# Add a dependency from the resource to the dll
21add_rc_deps(testdata.rc ${CMAKE_CURRENT_BINARY_DIR}/shlwapi_resource_dll/shlwapi_resource_dll.dll)
22
23add_executable(shlwapi_apitest ${SOURCE})
24set_module_type(shlwapi_apitest win32cui)
25target_link_libraries(shlwapi_apitest ${PSEH_LIB})
26add_importlibs(shlwapi_apitest shlwapi user32 msvcrt kernel32)
27add_dependencies(shlwapi_apitest shlwapi_resource_dll)
28add_rostests_file(TARGET shlwapi_apitest)
29