See documentation on how to build with CMake.
By default,
cmake
generates Unix Makefiles, if your system supports it (e.g.Linux
), you can use it to build the code. Otherwise, see specific cmake command-line when building forWindows
,OSX
.
-
Release
mkdir build cd build/ cmake .. cmake --build .
-
Debug
mkdir build cd build/ cmake -DCMAKE_BUILD_TYPE=Debug .. cmake --build .
-
Built executable
vrp_solver
is located underbuild/
directory[Linux] ./build/vrp_solver test_data/sample_input.csv [Windows] build\\vrp_solver.exe test_data\\sample_input.csv
-
Windows
: changecmake ..
to:cmake -G "Visual Studio <version> Win64" ..
This will generate MSVC solution
-
OSX
: changecmake ..
to:cmake -G Xcode ..
This will generate XCode project