My intention here is to review the basic Algorithms of computer science and learn C++, CMake, and any other c stuff that I need to learn.
I found many ways to build a run the C++ code with CMake, but for the moment I'm using these ones
cmake -S . -B build
Where -S
indicates the source directory and -B
indicates the build directory
make -C build
Where -C
indicates the compilation directory
I usually use neovim as my text editor and this project is no exception. In my neovim configuration, I'm using lsp-config and the ccls lsp server, the documentations of lsp-config/ccls mentions that ccls relies on a JSON compilation database. To generate this database and be sure that the lsp server will work fine, It's necessary to create the database with the following command.
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
you should run this command on the build directory