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