Skip to content

BasicCommands

MrKleeblatt edited this page Oct 8, 2022 · 3 revisions

Basic Commands

init

initiates a new project with the following structure:

project_root/
    ├── compile_commands.json
    ├── .idea/
    │   ├── customTargets.xml
    │   ├── runConfigurations/
    │   │   └── NAME.xml
    │   └── tools/
    │       └── External Tools.xml
    ├── kleebuild.json
    └── src/
        ├── include/
        └── main.c

where NAME is the executable name specified in kleebuild.json.

build <TARGET>

creates a new build directory (if not already existing), places all compiled object files in it and compiles them to an executable (name) specified in TARGET.

clean

deletes everything in build directory

run <TARGET>

runs the compiled executable with a priority of 20 (lowest on linux) so that even an infinite loop can not make your computer freeze. You will always be able to stop the program through CLion. I have no idea how to make this build tool work with CLion Debugger, but eventually I will work on that.

Clone this wiki locally