Skip to content

Commit

Permalink
Allow for using system chigraph
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed May 7, 2017
1 parent b5ede80 commit 672a565
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion chigraph

0 comments on commit 672a565

Please sign in to comment.