CLion: Difference between revisions

From Bitpost wiki
(Created page with "IntelliJ CLion is a heavy IDE for cross-platform C++. Good for Intellisense-like assistance. === Ultimate Edition === I have a full license for my open-source work, granted...")
 
No edit summary
Line 8: Line 8:
During installation, it will ask where to put startup script, make it machine-specific for now to handle diff version, eg:
During installation, it will ask where to put startup script, make it machine-specific for now to handle diff version, eg:
  /home/m/development/scripts/ubuntu/viper/clion
  /home/m/development/scripts/ubuntu/viper/clion
=== Project Settings ===
* You typically have a CMakeLists.txt file that defines your CMake project.  Clion can open this!
* Next you should set up build/run/debug settings. 
* BUILD: Go to File > Settings > Build > CMake
** Debug is typically there as a default.  Hit the copy button and you'll get a Release too (silly).
** I set them up under cmake-debug and cmake-release (I remove the middle -build- part).
* RUN/DEBUG: Go to Run > Edit Configurations...
** Application > at_server (or other project name) - this is a debug setup
** Copy it to create a release setup
** Set both of them to run in [..] (the parent dir of the cmake build dir)

Revision as of 23:52, 11 September 2017

IntelliJ CLion is a heavy IDE for cross-platform C++. Good for Intellisense-like assistance.

Ultimate Edition

I have a full license for my open-source work, granted a year at a time. Download the tar, untar it here, and set up a symlink:

~m/development/intellij/clion-###
ln -s clion-#### clion

During installation, it will ask where to put startup script, make it machine-specific for now to handle diff version, eg:

/home/m/development/scripts/ubuntu/viper/clion

Project Settings

  • You typically have a CMakeLists.txt file that defines your CMake project. Clion can open this!
  • Next you should set up build/run/debug settings.
  • BUILD: Go to File > Settings > Build > CMake
    • Debug is typically there as a default. Hit the copy button and you'll get a Release too (silly).
    • I set them up under cmake-debug and cmake-release (I remove the middle -build- part).
  • RUN/DEBUG: Go to Run > Edit Configurations...
    • Application > at_server (or other project name) - this is a debug setup
    • Copy it to create a release setup
    • Set both of them to run in [..] (the parent dir of the cmake build dir)