mirror of
https://github.com/progsource/maddy.git
synced 2026-03-24 23:40:39 +01:00
Add Cmake install and find_package support
This commit is contained in:
11
README.md
11
README.md
@@ -30,7 +30,16 @@ The supported syntax can be found in the [definitions docs](docs/definitions.md)
|
||||
|
||||
## How to add maddy to your cmake project
|
||||
|
||||
You can use [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html)
|
||||
Use `find_package()` which provides `maddy::maddy` target:
|
||||
|
||||
```cmake
|
||||
find_package(maddy REQUIRED)
|
||||
|
||||
add_executable(my_exe)
|
||||
target_link_libraries(my_exe PRIVATE maddy::maddy)
|
||||
```
|
||||
|
||||
Or you can use [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html)
|
||||
which was introduced in CMake 3.11.
|
||||
|
||||
This way you can add
|
||||
|
||||
Reference in New Issue
Block a user