14 Sep
2018
14 Sep
'18
4:24 p.m.
mike wrote:
We are talking about 5-10 lines of cmake code + one line per dependency (the way I tend to format them).
I suggest you use my approach of including cmake/dependencies.cmake, which is generated by `boostdep --cmake <libname>`. See f.ex. https://github.com/pdimov/boost-cmake-demo/blob/master/libs/system/cmake/dep... https://github.com/pdimov/boost-cmake-demo/blob/master/libs/system/cmake/def... (except without 45-49) This would allow CMakeLists.txt to stay the same if dependencies change; it also allows overwriting dependencies.cmake wholesale, something that could potentially be automated in the future. I (somewhat arbitrarily) chose to use boost::libname as imported target name, not sure if Boost:: is better.