diff --git a/CMakeLists.txt b/CMakeLists.txt index f50e307..8b94a52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,13 @@ cmake_minimum_required(VERSION 3.0) +option(CG_USE_SYSTEM_CHIGRAPH "Try to find chigraph instead of building it here" OFF) + set(BUILD_EXAMPLES OFF CACHE BOOL "") add_subdirectory(third_party/nodeeditor) -add_subdirectory(chigraph) +if (CG_USE_SYSTEM_CHIGRAPH) + find_package(Chigraph REQUIRED) +else() + add_subdirectory(chigraph) +endif() add_subdirectory(src) diff --git a/chigraph b/chigraph index 2b57776..244c0d0 160000 --- a/chigraph +++ b/chigraph @@ -1 +1 @@ -Subproject commit 2b5777613ad3dd8f7c489f6d3b6c0b8021049d9c +Subproject commit 244c0d0a512158d6f126713fc0ca0e2a3b532989