Is it possible to have cmake build file (CMakeLists.txt) not in root directory in CLion?
I am currently working on project where cmake build file is not in not in the root directory of a CLion project (in out/Debug directory). I want CLion to open root of this project, and use cmake from out/Debug.
Is is possible? EXAMPLE:
|- main.cpp
|- classs.cpp
|- class.h
|- build1
|- CMakeLists.txt
|- build2
|- CMakeLists.txt
This is a little bit unusual, but think of situation when cmake file is generated.
Also, it can be possible when two projects want to have separate make files and common sources.
Just to clarify, CLION has solution for it.
Please do the following:
use 'Welcome Screen | Open Project', point to CMakeLists.txt
use 'Tools | CMake | Change Project Root', and point to the actual project's root.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With