Example of INTERFACE_INCLUDE_DIRECTORIES is incorrect
https://cmake.org/cmake/help/latest/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.html
instead of INTERFACE_INCLUDE_DIRECTORIES gives an example of target_include_directories which is highly related but not the same thing.
target_include_directories(mylib INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/mylib>
$<INSTALL_INTERFACE:include/mylib> # <prefix>/include/mylib
)
also
set_target_properties(${PROJECT_NAME} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}/somelib/usr/local/include/somelib-1.0
${CMAKE_CURRENT_SOURCE_DIR}/somelib/usr/local/include/
)
reports set_target_properties called with incorrect number of arguments.
likely, because I'm using it incorrectly, however, thats why came to the docs for a working example