Export the INCLUDES DESTINATION without appending to the INTERFACE_INCLUDE_DIRECTORIES of the target itself. That way, a target can be exported multiple times with different INCLUDES DESTINATION without unintended cross-pollution of export sets.
5 lines
117 B
CMake
5 lines
117 B
CMake
|
|
add_library(empty empty.cpp)
|
|
install(TARGETS empty DESTINATION lib INCLUDES DESTINATION include)
|
|
# install(EXPORT )
|