13 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
412
views
CMake and AUTOGEN not working with certain project structure
I have an interesting problem with a CMake project that uses QT and the AUTOGEN approach (AUTOMOC and AUTOUIC in my case).
I have this minimal sample structure:
MinimalCMakeProject/
├── CMakeLists.txt
...
0
votes
0
answers
126
views
AutoUIC ignore "ui file not found" before proprocess
I have a file who look like this :
...
#ifdef IS_COMPILE_FOR_SPECIAL_TARGET
#include "ui_myPage_special.h"
#else
#include "ui_myPage.h"
#endif
The ...
0
votes
1
answer
509
views
QT moc.exe failes due to file(COPY externLibrary DESTINATION build/)
I have a C++ CMake MinGW_64 msys2 project for setting up a camera with lumisuite and QT6 for a gui, which resulted in the following error
[cmake] CMake Error: AUTOMOC for target mainwindow: Test run ...
0
votes
1
answer
828
views
CMake AUTOMOC vs. qt5_wrap_cpp
I would wish to use qt5_wrap_cpp (much faster) than CMake's AUTOMOC feature, but I have a problem. In one of the libraries (other compile fine) some of generated moc files with qt5_wrap_cpp are ...
-1
votes
1
answer
859
views
How to make CMake use AUTOMOC without find_package?
Currently, I have Qt dlls and include headers as a dependency in my repo. I wanted to make use of CMake's CMAKE_AUTOMOC functionality providing a moc.exe binary along with dlls and include files. ...
IC_'s user avatar
- 1,899
0
votes
0
answers
945
views
CMake not generating Qt moc rules
This is a debugging question. I am trying to integrate Qt moc'ing into a CMake managed project using the AUTOMOC feature. I have not managed to generate a project which includes moc rules, though I ...
1
vote
1
answer
1k
views
How to switch off CMake automoc for subdirectories?
I have directory aaa and aaa/bb. I want CMake to create the moc_compilation.o file only for aaa/*.cxx files, but it scans recursively aaa/bb/*.cxx files also. How can I disable the recursive scan for ...
0
votes
1
answer
315
views
CMake with AUTOMOC is removing my implementations [closed]
I want to use CMake to build this QHttp project, I wrote a minimum set of CMakeLists.txt for build the basic-server example but is not linking.
I created an OBJECT library for the 3rdparty library ...
1
vote
1
answer
537
views
How to get AUTOMOC to find header file in QT5
I'm using Qt 5 and I put all my headers in separate include folders, and AUTOMOC is unable to find my headers.
src
|- sim
|- include
|- sim
|- client.h (contains Q_OBJECT)
...
6
votes
0
answers
2k
views
CMake AUTOMOC is slow
I have a QT project with that is built with CMake. One of the targets have 142 files that need to have moc. When I use qt5_wrap_cpp on source files and build it the process gets finished in around 15 ...
2
votes
3
answers
3k
views
CMake AutoMOC generates .cpp with errors
I have a project that is being generated via CMake that also uses the AutoMOC flag. However, when I open the solution and try to build the project (using the Visual Studio 15 2017 x64 generator), this ...
1
vote
2
answers
5k
views
qt private slot moc undefined reference error
I have a simple C++ Qt program and I get undefined reference when I use private slots. Can anyone help me?
I am learning GUI design using Qt5 from the book C++ GUI Programming with Qt4. I am using ...
12
votes
2
answers
3k
views
How do you get cmake to add compiler definitions only for automoc files
Our project is using very strict set of warnings, but Qt5 generated moc files produce code that violates these warnings. We could obviously turn off the warnings globally, but I'd like to just ...