Commit Graph

2 Commits

Author SHA1 Message Date
Cristian Adam
ba1e54b8a4 CMakePM: Add a sample Find Module CMake package snippet
This is taken from https://cmake.org/cmake/help/latest/manual/cmake-
developer.7.html#a-sample-find-module

And provides three customization points:
 1. $package$ - ZLIB
 2. $header$.h - zlib.h
 3. $library$ - zlib

This way users can easily create FindZLIB.cmake find modules which can
be easily used as target_link_libraries(my-app PRIVATE ZLIB::ZLIB)

Change-Id: Id5143c46ecfde09419d4f43b9a3ff156401a88f9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-29 16:54:41 +00:00
Cristian Adam
7de97c7a7f CMakePM: Add CMake snippets
Added four CMake snippets.

Change-Id: I5f6f16ff8fd1a7ddd9647431f2f72529b882d603
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 17:11:38 +00:00