This project uses CMake and requires a modern C++17 compiler.
This project uses GTest, LSL, SDL2, Clang-format, Clang-tidy, protobuf-compiler and cmake, but you don't need to install GTest and LSL because cmake will install it for you. Below is minimal linux setup.
git clone git@github.com:KN-Neuron/Neuron-IDE-runtime.git
sudo apt update
sudo apt install cmake clang-format clang-tidy libsdl2-dev protobuf-compilerTo configure and compile the project, open your terminal in the root directory and run:
# Generate the build system in the "build" directory
cmake -B build
# Compile the project
cmake --build buildOnce built, the main executable will be available inside the build directory.
This project uses Google Test (GTest) and CTest for testing. The tests are categorized by labels so you can run them selectively.
To run all tests:
cd build
ctest --output-on-failureTo run only unit tests:
cd build
ctest -L unit --output-on-failureTo run only component tests:
cd build
ctest -L component --output-on-failureThis project includes a custom CMake target to automatically format all C++ source files using clang-format.
To format your code:
# Assuming you have already configured the build directory
cmake --build build --target formatThis will run clang-format -i over all trackable source and header files, applying the style configuration specified in the project.
In case you want to create an example .pb file for testing or some other purpose, you have to first create a .pbtxt file (check out protoFiles/tests/test_scene.pbtxt for reference) which you then compile with this command:
protoc --encode=NeuronIDE.Scene protoFiles/neuronide.proto < protoFiles/tests/test_scene.pbtxt > protoFiles/tests/test_scene.pb