Questions tagged as 'cmake'

0
answers

How to write programs that support internationalization using cmake?

I am writing a small software in C ++ and would like to be able to translate it into other languages. Looking quickly through the internet, the most accepted tool in linux environments is GNU gettext . In the official project documentat...
asked by 30.10.2017 / 13:53
1
answer

find_package failed to generate project (in Qt) with CMake

I'm trying to generate the build configuration from a simple example in Qt using CMake. The example code is this: #include <QApplication> #include <QTextEdit> int main(int argc, char** argv) { QApplication app(argc, argv);...
asked by 24.02.2016 / 15:28
1
answer

Qt5Widgets.dll DLL error when it is installed to another computer

I'm trying to export an application built in Qt 5.7.0 (compiled to 32-bit, though development takes place in a Windows 10, 64-bit environment) to another computer (this one with Windows 8.1, 32 bit). To do this, I have prepared the CMake scri...
asked by 02.08.2016 / 15:43
1
answer

Debug vs Release in CMake

How to specify the flags for debug vs C / C ++ release.     
asked by 02.07.2015 / 16:12
1
answer

How to compile SQLite3?

I'm trying to run a short test with SQLite3. I can not run this program so simple! I have already researched solutions on the internet and none of them solved my problem. Follow the program, cmakelists and logs : main.c #include <stdi...
asked by 06.10.2015 / 15:07
1
answer

Link library boost with cmake?

I'm trying to use c ++ boost library. Reading a tutorial on their website, I came across this and do not know how to do it. It is said that I have to include #include <boost/test/unit_test.hpp> and make a link with this lib: libunit...
asked by 19.11.2017 / 18:36
1
answer

Multiples Cmake in a project

I'm developing an application in C ++, where I need to use a library I've developed before with CMake. But I do not want to call the binary directly because each platform will have to have a binary separately, and it's annoying to have to compil...
asked by 24.04.2016 / 07:29
2
answers

Error while compiling Cmake project

I'm having the following problem when trying to build a project using CMake: -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:2 (project): I'm running the following:...
asked by 11.03.2017 / 17:21
2
answers

How to print compile and link commands in CMake?

I have a project that uses CMake and would like to print the build commands it generates. How to do this?     
asked by 17.06.2015 / 20:50
1
answer

Project shared with CMake

I have a project with the following structure: Projeto A: | CMakeLists.txt | main.cpp | #include "ProjetoB/ClassB.cpp" | #include "ProjetoC/ClassC.cpp" | vendor/ | Projeto B: | CMakeLists.txt |...
asked by 30.03.2017 / 03:44