Files
CMake/Tests/RunCMake/install/EXPORT-Component.cmake
T
2025-09-23 10:19:13 -04:00

9 lines
225 B
CMake

add_library(foo INTERFACE)
install(TARGETS foo EXPORT fooExport)
install(EXPORT fooExport
DESTINATION "share/cmake"
COMPONENT "bar"
)
get_cmake_property(components COMPONENTS)
message(STATUS "COMPONENTS='${components}'")