[CMake] Writing find packages

Gregor Jasny gjasny at googlemail.com
Sat Sep 5 15:29:56 EDT 2015


Hello,

On 03/09/15 23:15, Robert Dailey wrote:
> How recent is this documentation?
> http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules
> 
> It seems rather old. What is the modern way of doing this?

The cmake-developer help page has a section about modules:
http://www.cmake.org/cmake/help/latest/manual/cmake-developer.7.html#find-modules

Or you use an existing module as boilerplate code. Maybe you could look
at FindZLIB.cmake or any other module which uses add_library(...
IMPORTED ...)

Thanks,
Gregor


More information about the CMake mailing list