[CMake] Mixed linking

Stephen Kelly steveire at gmail.com
Thu Feb 5 15:41:40 EST 2015


Ghyslain Leclerc wrote:

> Here are a few questions for the list (hoping someone more knowledgable
> than me will read this and help):
> 
> 1) Am I right when I say CMake, Qt and static linking don’t mix ?

They should mix fine.

> 
> I have tried on OS X.   I have compiled a static version of Qt, making
> sure I explicitly enable every plugin I need.  Then, I have used the
> following CMake code :

I recommend starting with a minimal testcase, make sure it runs, and add 
things until it doesn't. Find the change that breaks. 

> qt5_use_modules( calculum Widgets Sql )

You probably don't need this line.

I don't have experience on OSX to help.

Thanks,

Steve.




More information about the CMake mailing list