I’ve been reading your excellent Professional CMake book and have got to the section about other uses for
27.2.2). It talks about being able to pull down individual .cmake files for use across a number of projects. I have created a repo with a simple .cmake file I’d like to reuse (https://github.com/pr0g/cmake-helpers) and have copied the commands required but I don’t quite understand how to reference that given file in my
I see that it appears here
build/_deps/cmake-helpers-src/simple-install.cmake but when I try and use
include(simple-install.cmake) in the root
CMakeLists.txt file it can’t be found. I’ve tried with a relative path but that doesn’t seem to work either.
An example of how to actually reference the file would be incredibly useful!
Thanks very much for your time,