Skip to content

Commit

Permalink
Link nesci and contra to risotto example
Browse files Browse the repository at this point in the history
  • Loading branch information
soehrl committed Sep 13, 2018
1 parent 7ebc1c5 commit c689819
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions example/risotto/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
add_executable(risotto risotto.cpp)
find_package(contra COMPONENTS core zmq QUIET)
find_package(nesci COMPONENTS layout producer QUIET)

target_link_libraries(risotto PRIVATE arbor arbor-anc ext-tclap ext-json)
if (NOT contra_FOUND)
message(STATUS "Optional dependency 'contra' not found, skipping creation of example 'risotto'")
elseif (NOT nesci_FOUND)
message(STATUS "Optional dependency 'nesci' not found, skipping creation of example 'risotto'")
else ()
add_executable(risotto risotto.cpp)
target_link_libraries(risotto PRIVATE arbor arbor-anc ext-tclap ext-json contra contra_zmq nesci_producer)
endif ()

0 comments on commit c689819

Please sign in to comment.