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