mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-12 23:05:18 -05:00
53 lines
1.3 KiB
ReStructuredText
53 lines
1.3 KiB
ReStructuredText
.. _Csharp:
|
|
|
|
**********
|
|
C# Wrapper
|
|
**********
|
|
|
|
Pre-compiled Binaries
|
|
=====================
|
|
Pre-compiled binaries can be downloaded from XXXXXXXXXXXXXX
|
|
|
|
User-Compiled Binaries
|
|
======================
|
|
|
|
Common Requirements
|
|
-------------------
|
|
Compilation of the C# wrapper requires a few :ref:`common wrapper pre-requisites <wrapper_common_prereqs>`
|
|
|
|
Octave Requirements
|
|
-------------------
|
|
* SWIG
|
|
* C#
|
|
|
|
Linux
|
|
-----
|
|
|
|
For ubuntu and friends, you will need to install Mono C# as well as the compiler (and other dependencies) using::
|
|
|
|
sudo apt-get install swig mono-mcs mono-runtime
|
|
|
|
Windows
|
|
-------
|
|
For Windows, download the Visual Studio 2010 version of C# (other versions should probably be fine too)
|
|
|
|
Compile
|
|
-------
|
|
|
|
Once mono c# is installed, you can run the builder and tests using::
|
|
|
|
# Check out the sources for CoolProp
|
|
git clone https://github.com/CoolProp/CoolProp --recursive
|
|
# Move into the folder you just created
|
|
cd CoolProp
|
|
# Make a build folder
|
|
mkdir -p build/Csharp
|
|
# Move into that folder
|
|
cd build/Csharp
|
|
# Build the makefile using CMake
|
|
cmake ../.. -DCOOLPROP_CSHARP_MODULE=ON -DBUILD_TESTING=ON
|
|
# Make the C# files (by default files will be generated in folder install_root/Csharp relative to CMakeLists.txt file)
|
|
make install
|
|
# Run the integration tests
|
|
ctest --extra-verbose
|