From a7ab78f3bfa32ebe194b7da7e74ab3c6bc7dcd56 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Fri, 17 May 2019 18:13:37 +0200 Subject: [PATCH] Update README.md --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 578713c..6e23250 100644 --- a/README.md +++ b/README.md @@ -101,9 +101,25 @@ CPMAddPackage( 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 -Has no CMakeLists.txt, so a target must be created manually. +Library without CMakeLists.txt, target must be created manually. ```cmake CPMAddPackage(