Files
CMake/Tests/RunCMake/install/EXPORT-SystemInclude.cmake
T

5 lines
191 B
CMake

add_library(iface INTERFACE)
target_include_directories(iface SYSTEM INTERFACE "$<INSTALL_INTERFACE:include>")
install(TARGETS iface EXPORT foo)
install(EXPORT foo DESTINATION lib/cmake/foo)