A uniform interface to access the libraries/headers without having to manually type in the include directory or the library name would be nice.
Several projects use ${project_NAME}_LIBRARIES variable for all the libraries along with set_target_properties(${target} PROPERTIES INTERFACE_COMPILE_...) to make it autodiscover.
Others use INTERFACE "$<BUILD_INTERFACE:...>" "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
A uniform interface to access the libraries/headers without having to manually type in the include directory or the library name would be nice.
Several projects use
${project_NAME}_LIBRARIES
variable for all the libraries along withset_target_properties(${target} PROPERTIES INTERFACE_COMPILE_...)
to make it autodiscover.Others use
INTERFACE "$<BUILD_INTERFACE:...>" "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")