Use CMake generators to create biicode projects for many IDEs and platforms. By default, biicode configures your projects with no IDE and MinGW (Windows) and UNIX Makefiles (MacOS and Linux).
Execute cmake --help
to see the full list of CMake generators available in your system:
$ cmake --help
Choose yours, and tell biicode to configure your project for that IDE:
$ bii configure -G "CMake generator name"
bii configure
admits any other CMake directives. For example, to enable the Debug build configuration,(e.g. Visual Studio, Eclipse):
$ bii configure -G "CMake generator name" -DCMAKE_BUILD_TYPE=Debug
To create an Eclipse CDT project, run:
$ bii configure -G "Eclipse CDT4 - Unix Makefiles"
Windows users might configure it like this:
$ bii configure -G "Eclipse CDT4 - MinGW Makefiles"
Now, import your project into the Eclipse IDE.
If you want to add new files to your block, just right-click on the folder of your block and create a new file.
You can build your application in Project > Build project
If you are using Eclipse with Mac OS X, you will need some additional setup to execute your binaries within this IDE. Read this troubleshooting section for more information.
Generate a Microsoft Visual Studio 12 (2013) project:
$ bii configure -G "Visual Studio 12"
Open your project with Visual Studio. Just double-click on the .sln file inside the build folder of your project and a VS project will open.
Use CLion - the intelligent cross-platform C/C++ IDE - with biicode.
Get into your project’s folder and execute:
$ bii init myproject -l=clion
And configure your project to set the changes:
$ bii configure
Open the biicode project with CLion (File -> Open).
Use biicode’s commands from the embedded Terminal in CLion, open it with: Alt+F12 or View -> Tool Windows -> Terminal.
Eclipse or CLion IDEs need the classic biicode folder layout (can’t handle your code directly in the root folder). Next steps cover how to use them when importing a project from a git repo. Just clone/checkout the code at the corresponding folder.
CLion:
$ bii init myproject -l=clion
$ cd myproject
$ git clone https://github.com... blocks/username/blockname
$ bii configure
Eclipse CDT projects:
$ bii init myproject
$ cd myproject
$ git clone https://github.com... blocks/username/blockname
$ bii configure -G "Eclipse CDT4 - MinGW Makefiles" (or Unix)
If you have any questions, we are available at biicode's forum and/or StackOverflow tag. You can also write us for suggestions and feedback.