Make sure you have GNU make, CMake and have C++23. Then run:
make setupThat should generate build directory and create a symbolic link of compile_commands.json file from build directory to the root directory with the same name. It ensures that LSP correctly detects all STD lib modules from C++23.
├── build/
├── cesar.cpp
├── CMakeLists.txt
├── compile_commands.json -> build/compile_commands.json
├── Makefile
├── README.mdThe generated JSON file should look like that:
[
{
"directory": "/path/to/your/project/Cryptography/build",
"command": "/usr/bin/c++ -std=gnu++23 -o CMakeFiles/cesar.dir/cesar.cpp.o -c /path/to/your/project/Cryptography/cesar.cpp",
"file": "/path/to/your/project/Cryptography/cesar.cpp",
"output": "CMakeFiles/cesar.dir/cesar.cpp.o"
}
]Once everything is setup you can run tests for all algorithms (currently only Cesar algorithm is available):
make test