This library is intended to be placed into a source tree using submodules to replicate the following directory layout:
root/
Nuclex.Platform.Native/ <-- you are here
CMakeLists.txt
Nuclex.Support.Native/ <-- Git: nuclex-shared-cpp/Nuclex.Support.Native
CMakeLists.txt
build-system/ <-- Git: nuclex-shared/build-system
cmake/
cplusplus.cmake
third-party/
nuclex-googletest/ <-- Git: nuclex-builds/nuclex-googletest
CMakeLists.txt
nuclex-celero/ <-- Git: nuclex-builds/nuclex-ceelero
CMakeLists.txt
If that's a bit overwhelming, try cloning (with --recurse-submodules) my "frame fixer"
or another application that uses this library to get that directory tree.
The dependencies of the code itself are rather tame:
- Nuclex.Support.Native
- gtest (optional, if unit tests are built)
- celero (optional, if benchmarks are built)
Either use the included CMakeLists.txt (it still requires the build-system directory)
or, more directly:
- Add
Nuclex.Platform.Native/Includeto your include directory - Add
Nuclex.Support.Native/Includeto your include directory - Link
libNuclexPlatformNative.so(orNuclex.Platform.Native.libon Windows) - Copy the
.sofiles (or.dllfils on Windows) to your output directory (of bothNuclex.Platform.NativeandNuclex.Support.Nativewhich it depends on)