Skip to content

dreal/dreal-cmake-example-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

An example cmake project to show you how to use the system-installed dReal as a library in a Cmake project.

Setup

You need to install dReal4 in your system. We also rely on pkg-config.

macOS 11.0 / 10.15 / 10.14

We use homebrew.

brew install pkg-config
brew install dreal/dreal/dreal

Ubuntu 20.04 / 18.04

curl -s https://raw.githubusercontent.com/dreal/dreal4/master/setup/ubuntu/$(lsb_release -r -s)/install.sh | sudo bash

CMake Build

Run the following to build and run the example project.

git clone https://github.com/dreal/dreal-cmake-example-project.git
cd dreal-cmake-example-project
mkdir build
cd build
cmake ../
make           # Build
./check_sat    # Execute

About

Show how to use dReal as an external library in CMake

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published