LibMCP
0.2.0
API to control MCPnet
|
There are three ways to include LibMCP in your project example
.
To achieve this just install LibMCP without providing --prefix
. This is the preferred method for Linux. The CMakeLists.txt
file can look like this:
This is the default method for Windows but can also be used on Linux. It's very cumbersome since you need to copy every library file manually or with additional CMake commands.
For including LibMCP with this method you'll need two extra steps before target_link_libraries
.
This is the preferred method on Windows and the easiest way if your project is using CMake. To be able to do this you need to clone LibMCP directly to your project folder.
The CMakeLists.txt
file can look like this:
As pointed out before this method can't be used if you're using a buildsystem other than CMake.