Update README.md

This commit is contained in:
Lars Melchior
2019-05-10 12:03:09 +02:00
committed by GitHub
parent f92ed18514
commit a8ccc42f43

View File

@@ -48,6 +48,8 @@ wget -O cmake/CPM.cmake https://raw.githubusercontent.com/TheLartians/CPM/master
### Catch2
Has a CMakeLists.txt that supports `add_subdirectory`.
```cmake
CPMAddPackage(
NAME Catch2
@@ -58,6 +60,8 @@ CPMAddPackage(
### google/benchmark
Has a CMakeLists.txt that supports `add_subdirectory`, but needs some configuring (otherwise depends on googletest as well).
```cmake
CPMAddPackage(
NAME benchmark
@@ -74,13 +78,15 @@ set_target_properties(benchmark PROPERTIES CXX_STANDARD 17)
### Lua
Has no CMakeLists.txt, target must be created manually.
```cmake
CPMAddPackage(
NAME lua
GIT_REPOSITORY https://github.com/lua/lua.git
VERSION 5-3-4
GIT_SHALLOW YES
DOWNLOAD_ONLY YES # lua has no CMakeLists.txt
DOWNLOAD_ONLY YES
)
CPMGetProperties(lua)