在cmake文件中打开no_keyword(Qt选项)以使用boost :: signals [英] Turning the no_keyword (Qt option) ON in a cmake file to work with boost::signals

查看:146
本文介绍了在cmake文件中打开no_keyword(Qt选项)以使用boost :: signals的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Qt4 boost :: signals 时遇到问题.

I'm having problems using Qt4 and boost::signals.

我在互联网上搜索了有关放入 .pro文件 no_keyword 选项的信息.

Searching the internet I found about the no_keyword options to put in a .pro file.

CONFIG += no_keywords

问题是,我参与的项目使用的是 cmake ,而不是 .pro 文件.那么如何在cmake文件中打开此选项?

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 ?

推荐答案

尝试将 ADD_DEFINITIONS(-DQT_NO_KEYWORDS)添加到您的CMakeLists.txt

Try to add ADD_DEFINITIONS(-DQT_NO_KEYWORDS) to your CMakeLists.txt

这篇关于在cmake文件中打开no_keyword(Qt选项)以使用boost :: signals的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆