mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-22 20:27:45 -05:00
Update README.md
This commit is contained in:
18
README.md
18
README.md
@@ -101,9 +101,25 @@ CPMAddPackage(
|
|||||||
set_target_properties(benchmark PROPERTIES CXX_STANDARD 17)
|
set_target_properties(benchmark PROPERTIES CXX_STANDARD 17)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Simple match
|
||||||
|
|
||||||
|
Header-only library without releases or CMakeLists.txt, target must be created manually.
|
||||||
|
|
||||||
|
```cmake
|
||||||
|
CPMAddPackage(
|
||||||
|
NAME simple_match
|
||||||
|
GIT_REPOSITORY https://github.com/jbandela/simple_match.git
|
||||||
|
GIT_TAG a3ab17f3d98db302de68ad85ed399a42ae41889e
|
||||||
|
DOWNLOAD_ONLY True
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(simple_match INTERFACE IMPORTED)
|
||||||
|
target_include_directories(simple_match INTERFACE "${simple_match_SOURCE_DIR}/include")
|
||||||
|
```
|
||||||
|
|
||||||
### Lua
|
### Lua
|
||||||
|
|
||||||
Has no CMakeLists.txt, so a target must be created manually.
|
Library without CMakeLists.txt, target must be created manually.
|
||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
|
|||||||
Reference in New Issue
Block a user