CMake/Tests/RunCMake/alias_targets/install-export.cmake

10 lines
190 B
CMake

enable_language(CXX)
add_library(foo empty.cpp)
add_library(alias ALIAS foo)
install(TARGETS alias EXPORT theTargets DESTINATION prefix)
install(EXPORT theTargets DESTINATION lib/cmake)