Add DEPENDENCY_ADDED property (#50)

* add DEPENDENCY_ADDED property

* update examples

* Update README.md

* Update README.md

* Update CPM.cmake

* Update README.md
This commit is contained in:
Lars Melchior
2019-05-20 01:52:55 +02:00
committed by GitHub
parent 275a12f2d8
commit bf5e9ebafb
6 changed files with 36 additions and 20 deletions

View File

@@ -11,8 +11,10 @@ CPMAddPackage(
DOWNLOAD_ONLY True
)
add_library(simple_match INTERFACE IMPORTED)
target_include_directories(simple_match INTERFACE "${simple_match_SOURCE_DIR}/include")
if(simple_match_ADDED)
add_library(simple_match INTERFACE IMPORTED)
target_include_directories(simple_match INTERFACE "${simple_match_SOURCE_DIR}/include")
endif()
# ---- Executable ----