Example projects for the Xnpp (XN++) library. https://github.com/borgesdan/xnpp
These projects were created using the Visual Studio 2022 CMake template.
- C++ 20 - Core language
- CMake - Build system
- vcpkg - Package manager
The /ports directory is responsible for providing access to xnpp on GitHub for vcpkg.
- In the root
CMakeLists.txt, setONfor the projects you wish to build. - Go to the Project menu > Configure XnppProjects (if it hasn't happened automatically).
- Go to the Build menu > Build All or build a specific executable.
- Select the project in the Startup Item dropdown.
- Go to the Debug menu > Start Debugging (F5).
To build the projects via the command line, follow these steps:
-
Clone the repository:
git clone [https://github.com/borgesdan/xnpp-samples.git](https://github.com/borgesdan/xnpp-samples.git) cd xnpp-samples -
Generate build files: Ensure you specify the path to your
vcpkgtoolchain file so CMake can find the dependencies:cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=[path_to_vcpkg]/scripts/buildsystems/vcpkg.cmake -
Compile the projects:
cmake --build build --config Debug
-
Run an example: The compiled binaries will be located inside the
buildfolder../build/ProjectName
This project is licensed under the MIT License.