summaryrefslogtreecommitdiff
path: root/examples/api
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2018-09-15 00:05:44 -0700
committerMathias Preiner <mathias.preiner@gmail.com>2018-09-22 16:30:59 -0700
commit9267af9315f21c9608a5962f862a4882758aa26e (patch)
tree7a858ce7e43c4766b40ff79f51739055817a38e1 /examples/api
parenta8c0ae49ee9c04327b1a8d538a0cdae746616d5b (diff)
cmake: Guard examples that require Boost.
Diffstat (limited to 'examples/api')
-rw-r--r--examples/api/CMakeLists.txt24
1 files changed, 23 insertions, 1 deletions
diff --git a/examples/api/CMakeLists.txt b/examples/api/CMakeLists.txt
index 55651e238..4e4d81ed3 100644
--- a/examples/api/CMakeLists.txt
+++ b/examples/api/CMakeLists.txt
@@ -1,10 +1,32 @@
-set(EXAMPLES_API_BIN_DIR ${EXAMPLES_BIN_DIR}/api)
+set(EXAMPLES_API_BIN_DIR ${EXAMPLES_BIN_DIR}/api)
+
+set(CVC4_EXAMPLES_API
+ bitvectors
+ bitvectors-new
+ bitvectors_and_arrays
+ bitvectors_and_arrays-new
+ combination
+ combination-new
+ datatypes
+ datatypes-new
+ extract
+ extract-new
+ helloworld
+ helloworld-new
+ linear_arith
+ linear_arith-new
+ sets
+ sets-new
+ strings
+ strings-new
+)
foreach(example ${CVC4_EXAMPLES_API})
add_executable(${example} EXCLUDE_FROM_ALL ${example}.cpp)
target_link_libraries(${example} cvc4)
set_target_properties(${example}
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${EXAMPLES_API_BIN_DIR})
+ add_dependencies(examples ${example})
endforeach()
if(BUILD_BINDINGS_JAVA)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback