CesiumJS-like functionality for C++.
- Visual Studio 2019 or GCC v7.x+. Other compilers may work but haven't been tested.
- CMake (add it to your path during install!)
- Check out the repo with
git clone [email protected]:CesiumGS/cesium-native.git --recurse-submodules
so that you get the third party submodules. - Build the draco library with CMake:
pushd extern; mkdir build; cd build; mkdir draco; cd draco
cmake ../../draco/
cmake --build . --config Release
popd
- Build the uriparser library with CMake:
pushd extern; mkdir build; cd build; mkdir uriparser; cd uriparser
cmake ../../uriparser/ -DCMAKE_BUILD_TYPE=Release -D URIPARSER_BUILD_TESTS:BOOL=OFF -D URIPARSER_BUILD_DOCS:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=OFF -D URIPARSER_ENABLE_INSTALL:BOOL=OFF -D URIPARSER_BUILD_TOOLS:BOOL=OFF
cmake --build . --config Release
popd
- Open the cesium-native folder with Visual Studio Code with the
CMake Tools
extension installed. It should prompt you to generate project files from CMake. On Windows, chooseVisual Studio 2019 Release - amd64
as the kit to build. Or choose an appropriate kit for your platform. Then press Ctrl-Shift-P and execute theCMake: Build
task or press F7. Alternatively, you can build from the command-line as follows:mkdir build
- `cmake -B build -S .
cmake --build build --config Debug
- Install Doxygen.
- Run:
cmake --build build --target cesium-native-docs
- Open
build/doc/html/index.html