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 AssocQueryString.c 9 PathFindOnPath.c 10 PathIsUNC.c 11 PathIsUNCServer.c 12 PathIsUNCServerShare.c 13 PathUnExpandEnvStrings.c 14 PathUnExpandEnvStringsForUser.c 15 SHAreIconsEqual.c 16 SHGetRestriction.c 17 SHLoadIndirectString.c 18 SHLoadRegUIString.c 19 SHPropertyBag.cpp 20 StrFormatByteSizeW.c 21 testdata.rc 22 testlist.c) 23 24# Add a dependency from the resource to the dll 25add_rc_deps(testdata.rc ${CMAKE_CURRENT_BINARY_DIR}/shlwapi_resource_dll/shlwapi_resource_dll.dll) 26 27add_executable(shlwapi_apitest ${SOURCE}) 28set_module_type(shlwapi_apitest win32cui) 29target_link_libraries(shlwapi_apitest ${PSEH_LIB} uuid) 30add_importlibs(shlwapi_apitest shlwapi oleaut32 ole32 user32 gdi32 advapi32 msvcrt kernel32) 31add_dependencies(shlwapi_apitest shlwapi_resource_dll) 32add_rostests_file(TARGET shlwapi_apitest) 33