The cpp sub-project use vcpkg
's manifest mode.
Please install the vcpkg
on your system and set the VCPKG_ROOT
environment variable to the path of your vcpkg
installation.
To install the required packages and configure the project, run the following commands in your terminal:
# Go into the GeoSharPlusCPP directory
cd GeoSharPlusCPP
# Install the required packages
vcpkg install
# Cmake configure
cmake -B build .
After running the above commands, you should see a generated
folder inside root folder of this project:
- GeoSharPlus/
├── GeoSharPlusCPP/
├── GeoSharPlusNET/
├── GSPdemoGH/ <--- demo GH project
├── GSPdemoConsole/ <--- demo Console project
├── cppPrebuild/ <--- collective location for the cpp lib (`.dll` (Windows) or `.dylib` (MacOS))
└── generated/ <--- generated `.h` and `.cs` for the `flatbuffers` lib
Now you can open the GSP.DEMO.sln
solution file in Visual Studio and build the project.
The most important two folders are GeoSharPlusCPP
and GeoSharPlusNET
.
Copy the above two mentioned folders into your own project, and do:
- Modify the
CMakeList.txt
file in theGeoSharPlusCPP
folder to add:- any
cpp
lib that you want to use; - any additional pre-compilation process you want to integrate;
- any
- Conduct the processes described in the Setup section.
In your Grasshopper or Rhino plugin project, you need to add the two sub-projects:
- Right-click your main project ->
Add
->Project Reference...
-> Select theGeoSharPlusNET
project; - Check the
prebuild.ps1
andpostbuild.ps1
scripts in theGSPdemoGH
folder for additional build event and copy to your project.
This library is trusted by these notable projects:
- BeingAliveLanguage - A Grasshopper plugin to create computational diagrams for living systems.
- IG-Mesh - An one-stop solution for mesh processing in Grasshopper (for Rhino).
This project is licensed under the MIT License. See the LICENSE file for details.