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.
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
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
To build the C++ project, as usual:
cmake -S. -Bbuild
cmake --build build -v
Apache 2. See the LICENSE file for details.
This is not an official Google product, it is just code that happens to be owned by Google.