clion.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. .. _doc_configuring_an_ide_clion:
  2. CLion
  3. =====
  4. `CLion <https://www.jetbrains.com/clion/>`_ is a commercial IDE for C++.
  5. It requires a ``CMakeLists.txt`` file as a project file, which is problematic
  6. for Godot which uses the SCons buildsystem instead of CMake.
  7. However, there is a ``CMakeLists.txt`` configuration for
  8. :ref:`Android Studio <doc_configuring_an_ide_android_studio>` which can also
  9. be used by CLion.
  10. - If you've already opened another project, choose **File > Open** at the top of
  11. the CLion window. Otherwise, choose the option to import an existing project
  12. in the Welcome window.
  13. - Navigate to your Godot Git clone then select the folder
  14. ``platform/android/java/lib`` - the ``CMakeLists.txt`` file is located there.
  15. Select the folder (*not* the ``CMakeLists.txt file``), then click **OK**.
  16. .. image:: img/clion_1_open.png
  17. - If this popup window appears, select **This Window** to open the project:
  18. .. image:: img/clion_2_this_window.png
  19. - Choose **Tools > CMake >Change Project Root** and select the root Godot folder.
  20. .. image:: img/clion_3_change_project_root.png
  21. - You should be now be able to see all the project files. Autocomplete should
  22. work once the project has finished indexing.
  23. If you run into any issues, ask for help in one of
  24. `Godot's community channels <https://godotengine.org/community>`__.