[CMake] Converting QMake project to CMake

Stephen Kelly steveire at gmail.com
Wed Sep 28 04:13:52 EDT 2011


NoRulez wrote:

> Hi,
> 
> i'm trying to convert a qmake project to CMake.
> How can i translate "CONFIG" to CMake or what is the CMake's way of using
> the CONFIG variable?
> 
> e.g. CONFIG += mylib
> 
> Is this the CMake equivalent: SET(mylib TRUE)

No, probably not.

What does CONFIG += mylib do for a third party lib?

This link says CONFIG only accepts values with internal meaning to qmake:

http://doc.qt.nokia.com/latest/qmake-variable-reference.html#config

Thanks,

Steve.




More information about the CMake mailing list