Warning, /frameworks/purpose/KDEExperimentalPurposeConfig.cmake is written in an unsupported language. File is not indexed.
0001 find_package(KF5Purpose REQUIRED) 0002 message(WARNING "Look up the Purpose framework using KF5Purpose") 0003 0004 function(_copyTarget A B) 0005 add_library(${B} SHARED IMPORTED) 0006 0007 set(props INTERFACE_INCLUDE_DIRECTORIES INTERFACE_LINK_LIBRARIES IMPORTED_CONFIGURATIONS) 0008 0009 get_target_property(value ${A} IMPORTED_CONFIGURATIONS) 0010 foreach(cfg ${value}) 0011 list(APPEND props IMPORTED_LINK_DEPENDENT_LIBRARIES_${cfg} IMPORTED_LOCATION_${cfg} IMPORTED_SONAME_${cfg}) 0012 endforeach() 0013 0014 foreach(prop ${props}) 0015 get_target_property(value ${A} ${prop}) 0016 if (NOT value) 0017 message(WARNING "missing property ${A} ${prop}") 0018 endif() 0019 set_target_properties(${B} PROPERTIES ${prop} "${value}") 0020 endforeach() 0021 endfunction() 0022 0023 _copyTarget(KF5::Purpose KDEExperimental::Purpose) 0024 _copyTarget(KF5::PurposeWidgets KDEExperimental::PurposeWidgets)