mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 03:57:51 +00:00
Added user propagator example (#5625)
* Added user propagator example * User propagator example code refactoring (+ removed unused parameter warning) * Moved user-propagator example to its own directory
This commit is contained in:
parent
87d4ce2659
commit
091079e58c
6 changed files with 446 additions and 3 deletions
|
@ -106,6 +106,24 @@ ExternalProject_Add(z3_tptp5
|
|||
)
|
||||
set_target_properties(z3_tptp5 PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||
|
||||
################################################################################
|
||||
# Build example user-propagator project using libz3's C++ API as an external project
|
||||
################################################################################
|
||||
ExternalProject_Add(userPropagator
|
||||
DEPENDS libz3
|
||||
# Configure step
|
||||
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/userPropagator"
|
||||
CMAKE_ARGS
|
||||
"-DZ3_DIR=${PROJECT_BINARY_DIR}"
|
||||
"${EXTERNAL_PROJECT_CMAKE_BUILD_TYPE_ARG}"
|
||||
# Build step
|
||||
${EXTERNAL_PROJECT_BUILD_ALWAYS_ARG}
|
||||
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/userPropagator_build_dir"
|
||||
# Install Step
|
||||
INSTALL_COMMAND "${CMAKE_COMMAND}" -E echo "" # Dummy command
|
||||
)
|
||||
set_target_properties(userPropagator PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||
|
||||
################################################################################
|
||||
# Build Python examples
|
||||
################################################################################
|
||||
|
@ -118,4 +136,4 @@ endif()
|
|||
################################################################################
|
||||
if (Z3_BUILD_DOTNET_BINDINGS)
|
||||
add_subdirectory(dotnet)
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue