Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move from Gradle to CMake for C++ project [closed]

We have been using Gradle for our C++ project(s) for the last year now but as the complexity of the project grows and our use/creation of libraries increases I find myself dealing with situations where my knowledge of Gradle falls short.

The net is full of helpful resources for Gradle but it is extremely Java focused. Furthermore, I have not seen many C++ projects using Gradle. For these reasons, I am considering making the move to CMake since I am at point where I need to significantly edit our build scripts.

Is the move to CMake, a more battle testing and ubiquitous C/C++ build system, worth it? Or is sticking with Gradle, which recently came into the C++ game, worth the trouble?

Note: I know they are other C++ options out there but CMake seems like the one that would best replace our current solution.

like image 232
Jad Avatar asked Apr 07 '16 23:04

Jad


1 Answers

My advice would be to use CMake. Many projects have already been successfully using it. CMake also has the CPack and CTest features, which are very helpful when working with projects. Additionally, many IDE projects can be generated using either Gradle or CMake.

Just to point out, CMake is not a build system but a build system generator.

like image 172
Shiv Avatar answered Oct 22 '22 04:10

Shiv