|
target_include_directories(VecMath INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>) |
Snippet from my installed VecMathTargets.cmake
# Create imported target VecMath::VecMath
add_library(VecMath::VecMath INTERFACE IMPORTED)
set_target_properties(VecMath::VecMath PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "/var/tmp/portage/dev-libs/vecmath/work/vecmath/include"
INTERFACE_LINK_LIBRARIES "VecCore::VecCore"
)