[CMake] Making existing, compiled projects CMake aware

Saad Khattak saadrustam at gmail.com
Tue Nov 14 13:38:17 EST 2017


Hi,

I tried searching for an example project (perhaps already on github) to
follow but my Google skills have failed me.

There are some projects that are already compiled and I would like to fork
those projects and write a CMakeLists.txt file for them such that they can
be added by other CMake projects easily.

For instance, for the library: https://github.com/ygpark/Everything-SDK,
how would I write a CMakeLists.txt file such that:

=> the project has a CMake library named "Everything" (which is normally
the result of add_library)
=> it's headers, lib and dll files specified in the target "Everything"
properly
=> install() command to install the above for the target "Everything"
=> CMake generates the relevant "-config.cmake" file so that the library
can be easily found using the find_library() command

If an example already exists using modern CMake techniques, a link to it
would be wonderful.

Thanks,
Saad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171114/1bf0ae54/attachment.html>


More information about the CMake mailing list