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