or-tools / cmake_or-tools

Modern CMake C++ Sample using google/or-tools
Apache License 2.0
6 stars 0 forks source link

Github-CI:
Build Status Build Status Build Status

Build Status

Introduction

This is an integration test of ORTools in a Modern CMake C++ Project using the FetchContent module.

This project should run on Linux, Mac and Windows.

CMake Dependencies Tree

This CMake project is composed of one executable (FooApp) and one library (Foo) with the following dependencies:

ortools: PUBLIC ZLIB abseil-cpp Protobuf re2 Cbc SCIP
Foo: PRIVATE ortools
FooApp: PRIVATE ortools

Project directory layout

Thus the project layout is as follow:

<Method>
├── CMakeLists.txt
├── cmake
│   └── utils.cmake
├── Foo
│   ├── CMakeLists.txt
│   ├── include
│   │   └── foo
│   │       └── Foo.hpp
│   └── src
│       └── Foo.cpp
└── FooApp
    ├── CMakeLists.txt
    └── src
        └── main.cpp

C++ Project Build

To build the C++ project, as usual:

cmake -S. -Bbuild
cmake --build build -v

License

Apache 2. See the LICENSE file for details.

Disclaimer

This is not an official Google product, it is just code that happens to be owned by Google.