[CMake] simple find_package example

Randy Heiland randy.heiland at gmail.com
Thu Aug 2 10:01:39 EDT 2018


Hi,

I'd like to figure out how to modify the simple "hello" demo (
https://cmake.org/examples/) so that the Hello project is a library with an
accompanying FindHello.cmake and then the Demo project uses that
information and "find_package" to discover/use it.

Hopefully that makes sense. Basically, I'm looking for a simple tutorial on
how I can make my library easily accessible to a CMake project. Fwiw, my
library is not (currently) built with CMake.

thanks for suggestions,
Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180802/375b2be1/attachment.html>


More information about the CMake mailing list