Project Structure, like in IntelliJ Follow
In IntelliJ it is possible to add multiple modules to a project which is a great feature.
I know this is possible in CLion too because my colleague has done it and is using it daily, the problem is that he can't remember how he did it and we're not able to figure it out.
So, could someone please tell us how this is accomplished?
Please sign in to leave a comment.
You can have sub-projects in CMake via add_subdirectory command. Multiple sub-projects may contain multiple targets added via add_executable and/or add_library commands and have dependencies between them via target_link_libraries. If you want to add several unrelated projects to single workspace we have a feature request in our tracker: https://youtrack.jetbrains.com/issue/CPP-1537. Feel free to comment or upvote.