19 Jun
2017
19 Jun
'17
1:12 a.m.
Glen Fernandes wrote:
+1. I'm interested in the [typical] Boost header-only library case: - The CMakeLists.txt for building its tests - The .cmake file for locating the library - The consumption of the library in a user's CMakeLists
I have a guess ( based on my fairly basic usage of CMake) that at least #3 there should be simple (i.e. would it involve more than adding to include_directories or target_include_directories?).
In principle, neither should be needed, only target_link_libraries( target Boost::Whatever ). The usage requirements of Boost::Whatever would add the include directory (and its dependencies would transitively add their include directories.)