All Downloads are FREE. Search and download functionalities are using the official Maven repository.

z3-z3-4.13.0.src.api.julia.CMakeLists.txt Maven / Gradle / Ivy

The newest version!
find_package(JlCxx REQUIRED)

add_library(z3jl SHARED z3jl.cpp)
target_link_libraries(z3jl PRIVATE JlCxx::cxxwrap_julia libz3)
target_include_directories(z3jl PRIVATE
    "${PROJECT_SOURCE_DIR}/src/api"
    "${PROJECT_BINARY_DIR}/src/api"
    "${PROJECT_SOURCE_DIR}/src/api/c++"
)

option(Z3_INSTALL_JULIA_BINDINGS "Install Julia bindings when invoking install target" ON)
if(Z3_INSTALL_JULIA_BINDINGS)
    install(TARGETS z3jl
        LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
        ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
        RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
    )
endif()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy