You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Integrating HiGHS in your CMake Project](#integrating-highs-in-your-cmake-project)
59
59
60
-
## Introduction
60
+
## Introduction
61
61
62
62
HiGHS can be built from source using CMake: <http://www.cmake.org/>. CMake works by generating native Makefiles or build projects that can be used in the compiler environment of your choice.
63
63
@@ -69,7 +69,7 @@ You'll need:
69
69
*`CMake >= 3.15`.
70
70
* A C++11 compiler
71
71
72
-
## Supported compilers
72
+
## Supported compilers
73
73
74
74
Here is a list of the supported compilers:
75
75
@@ -84,42 +84,48 @@ To build the C++ library and executable run
84
84
85
85
```bash
86
86
cd HiGHS
87
-
cmake -S. -B build
87
+
cmake -S. -B build
88
88
cmake --build build --parallel
89
89
```
90
90
91
91
This generates HiGHS in the `build` directory and creates the [executable](@ref Executable) `build/bin/highs`, or `build/Release/bin/highs.exe` on Windows. To perform a quick test to see whether the compilation was successful, run `ctest` from within the build folder.
92
92
93
93
```bash
94
-
ctest
94
+
ctest
95
95
```
96
96
97
97
On Windows, the configuration type must be specified:
98
98
```bash
99
99
ctest -C Release
100
100
```
101
101
102
+
The default compiler for HiGHS on Windows is MSVC, to use `mingw64` some additional cmake flags are required:
By default, CMake builds the debug version of the binaries. These are generated in a directory `Debug`. To build a release version, add the option `--config Release`
125
131
@@ -164,7 +170,7 @@ For example, to generate build files in a new
164
170
subdirectory called 'build', run:
165
171
166
172
```shell
167
-
cmake -S. -Bbuild
173
+
cmake -S. -Bbuild
168
174
```
169
175
and then build with:
170
176
@@ -191,11 +197,11 @@ Following is a list of available options:
191
197
cmake -S. -Bbuild -LH
192
198
``` -->
193
199
194
-
HiGHS can be integrated into other CMake-based projects.
200
+
HiGHS can be integrated into other CMake-based projects.
195
201
196
202
# Integrating HiGHS in your CMake Project
197
203
198
-
If you already have HiGHS installed on your system, you can use `find_package()` to include HiGHS in your C++ CMake project.
204
+
If you already have HiGHS installed on your system, you can use `find_package()` to include HiGHS in your C++ CMake project.
Copy file name to clipboardExpand all lines: docs/src/interfaces/csharp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The nuget package contains runtime libraries for
29
29
*`macos-x64`
30
30
*`macos-arm64`
31
31
32
-
Details for building locally can be found in `nuget/README.md`.
32
+
Details for building locally can be found in `nuget/README.md`. Many thanks to Markus-Ludwig Wermer and the team at MENTZ GmbH for the NuGet packaging support!
0 commit comments