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

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
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.

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.

Related

Building C++ project for Arduino [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed yesterday.
Improve this question
The official Arduino IDE has some nice features, such as the board and library management, which works relatively well. However, when it comes to building. It only supports .ino files, while my project has .hpp and .cpp files, just like any regular C++ project. I tried things like the VS Code plugin for Arduino, but that also uses .ino files.
The only alternative I found is Sloeber, which is an Eclipse plugin, and it has the usual problem of Eclipse plugins that I can either install it or not. I had a previous version installed, but when I tried to update it, it completely broke my Eclipse installation. I tried installing the latest version, but it doesn't work.
Is there any alternative to sloeber? I'd prefer something that can be used from the command line, but an IDE is just fine too.

How to build this pacman project? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Hi, I want to build a PacMan game project which is on github (https://github.com/edoren/Pacman)
As i understood it needs three library naming STP, janssoon and SFML2.1 .
Can any one help me to set the required settings in in order to build and run it?
I am using win 8.1 and eclipse neon (c/C++)
please give me a step by step guide to install and setup every thing that is required (including the gcc 4.7 , SFML, STP, jansson , eclipse setting and so on.)
Why you do not use CMake like the owner of this project said?
This project was build on CMake. I think you couldn't use eclipse to do that...

C unit test framework for CMake [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm starting a C project with CMake and I want to use TDD. So I need an efficient unit testing framework which can be integrated with CMake.
I'm looking for a UTF wich can:
Be easily integrated with CMake
Gives me code coverage
Be (if it is possible) BSD-licenced
I have tried Kuya wich matches 3. but doesn't give a CC, then Check wich matches 2. but I haven't find any UTF that can be easily integrated with CMake.
By "easily integrated with CMake" I mean a tool wich can be launched by $ make tests.
http://code.google.com/p/googletest/ is C++.
It's well integrated with CMake, and I guess that shouldn't be a big problem to have your tests using a bit of C++, even if your tested files are in plain C.
What about CTest? CTest allows you to integrate tests into CMakeLists.txt. See http://cmake.org/Wiki/CMake/Testing_With_CTest for more thorough explanations. For your for requirements:
It can't be more simple.
That depends on how you design your tests - ctest only runs them
The same license as cmake

Has anyone successfully used Eclipse CDT + Eclim + CDT4 Generator? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Has anyone successfully used these three together? I used CDT4 to generate my eclipse project files. With the GUI version, things work fairly well. Most features work. Although I have problems with external libraries. For some reason eclipse won't recognize the standard library strings and some of my other external library variables. I've read online that modifying "C/C++ Build" properties can help. However when I use CDT4 to generate my workspace, that option disappears in the preferences menu.
Now when I try to use eclim and vim to work on my workspaces I run into more strange issues. It seems like the completion stuff works pretty well. And Eclipse will mark problem lines with ">>" notation. However I've noticed that navigating the code is not working at all. For example hierarchical call trees and jumping to the definition of a symbol. These things work fine in the GUI.
Does anyone have any tips/tricks to help me out here? Are there any solid guides on the web that address issues like these?
Thanks!

What is your favorite eclipse plugins for c / c++ development? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Besides just the CDT what do you find essential for c development using eclipse?
If you're doing development on Linux, then Linux Tools is very useful.
These are my favourite:
cppcheck (static code analysis)
valgrind (to find memory leaks)
google test (to make unit tests very easily)
Subclipse for svn integration
Qt Eclipse Integration plugin: http://qt.nokia.com/developer/eclipse-integration
Require Qt4.5. Both the plugin and Qt are free... as in beer and freedom!
I normally use cmake to build C++ projects. Recently I have been using the Eclipse CDT4 Generator and it works quite nicely, see this link or this one.
I have tried on Linux I don't about Windows. I know this project is trying to make easier develop with C++ on windows using Eclipse but it still have pending things.