|
idol
A C++ Framework for Optimization
|
Describes how to install idol automatically with CMake.
Let's assume that you have a basic CMake project with a CMakeLists.txt that looks like this:
This file creates a target called my_target made of only one source file main.cpp. Now, we show how to download idol and link it to your target.
First, we use FetchContent to download idol.
Then, we can link idol to our target.
That's it! You can now use idol in your project.
Note that you probably want to use idol in combination with external optimization solvers like Gurobi or HiGHS. To do so, you need to install the solvers and set the corresponding CMake options. See the CMake Configuration Options section for more details.
A CMake option can be set using
set(MY_OPTION VALUE)before theFetchContent_MakeAvailable(idol)line.