I'm having problems using Qt4 and boost::signals.
Searching the internet I found about the no_keyword options to put in a .pro file.
CONFIG += no_keywords
Problem is, the project I'm involved uses cmake and not .pro files. So how do I turn this options on in a cmake file ?
CMake is a tool to simplify the build process for development projects across different platforms. CMake automatically generates build systems, such as Makefiles and Ninja files. CMake is a third-party tool with its own documentation. This manual focuses on how to use CMake to build Qt applications and libraries.
Qt relies on some bundled tools for code generation, such as moc for meta-object code generation, uic for widget layout and population, and rcc for virtual file system content generation. These tools may be automatically invoked by cmake(1) if the appropriate conditions are met.
CMake automates the configuration of build systems. It controls the software compilation process by using simple configuration files, called CMakeLists. txt files. CMake generates native build configurations and workspaces that you can use in the compiler environment of your choice.
Try to add ADD_DEFINITIONS(-DQT_NO_KEYWORDS)
to your CMakeLists.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With