include(CMakeFindDependencyMacro) string(REGEX MATCHALL "[^;]+" SEPARATE_DEPENDENCIES "@PROJECT_DEPENDENCIES@") foreach(dependency ${SEPARATE_DEPENDENCIES}) string(REPLACE " " ";" args "${dependency}") find_dependency(${args}) endforeach() include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")