There are several ways the HiGHS library can be used within another C++ project.
To use the library from a CMake project use
and add the correct path to HIGHS_DIR.
An executable defined in the file
use_highs.cpp is linked with the HiGHS library as follows. Make sure HiGHS is installed in
install_folder following the installation guide. Afterwards, compile and run with
g++ -o use_highs use_highs.cpp -I install_folder/include/ -L install_folder/lib/ -lhighs