Using bicode and klion?

Is there an easy way to use clion (e.g. debugging) in a C ++ project using biicode as a build tool?

In fact, both systems work with cmake, but biicode generates CMakeLists.txt, which, as it seems, the clion does not understand (the one that is in blocks / not temporary in cmake /).

Right now, I could only work using self-generated CMakeLists.txt for biicode for regular collections and manually created CMakeLists.txt for compilation in clion. However, duplicating the design description does not seem to be a good idea.

I suppose some complicated dark scripts might be made (I'm pretty new to cmake), but I just play, and I don't think it's worth doing this or asking for it.

Has anyone tried using klion and bicode? Is Klion a fully supportive cmake yet? Is a bi-code using internal code that does not understand fully cmake-compatible tools? Did I miss some stupid idea?

+7
c ++ cmake clion biicode
source share
3 answers

This is currently not possible. Unfortunately, both biicode and CLion use cmake and use different conventions on the layout / structure of the project, and at the moment they are simply incompatible.

The good news is that people from CLION help a lot to figure out the optimal solution, so hopefully this will be fixed soon.

EDIT Feb 19, 2015: Now biicode 2.4.1 and the latest CLION EAP are compatible. You can open an existing biicode project in CLion using the following steps:

  • CLion-> Open the project, go to your biicode project/cmake/ folder and open it (where CMakeLists.txt lives)
  • CLion-> Change project root, select the main biicode project folder.

Then you can create and run your goals.

It may be convenient to check the settings → assembly, execution, deployment → CMake, - automatically restart CMake when editing.

And remember that if you change your project, add or delete files, main executable files, add or remove dependencies, run $ bii cpp:configure so that the whole project is updated

+8
source share

Now biicode and CLion work completely together. Here is a guide from biicode docs for using CLion .

+6
source share

Biicode has been replaced with Conan.io, which is much easier to use with CLion.

0
source share

All Articles