-
Use command with
target_prefix whenever possible. -
Use
find_package(Foo)for dependencies.2.1. Write
FindFoo.cmakeand add it to your cmake module path IF AND ONLY IF Foo is not a CMake project.2.2. Set
Foo_ROOTwhen you placeFooin custom directory, this is just magic.2.3. To understand
FindFoo.cmake, read CMake line by line - using a non-CMake library. -
Export your target.
This repository was archived by the owner on May 10, 2023. It is now read-only.
cloudhan/cmake-recipes
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|