[Interest] using cmake to build Qt projects.

Jean-Michaƫl Celerier jeanmichael.celerier at gmail.com
Thu May 5 12:08:04 CEST 2016


> I am almost there, but when it links there are symbols undefined.
> From my experience the symbols I am seeing are typical of missing moc
files.

You should still post your error messages I think, maybe it's some library
that Qt links automatically but
that you have to link by hand with CMake ?


On Wed, May 4, 2016 at 7:29 PM, william.crocker at analog.com <
william.crocker at analog.com> wrote:

> On 05/04/2016 01:07 PM, Thiago Macieira wrote:
>
>> On quarta-feira, 4 de maio de 2016 10:08:27 PDT Bill Crocker wrote:
>>
>>>    From my experience the symbols I am seeing are typical of missing moc
>>> files. I know I have all of my #include "abc.moc" statements in place
>>> because my project builds fine with qmake.
>>>
>>
>> That probably is. You need to tell cmake to handle the moc files. Either
>> use
>> qt4_wrap_moc (or whatever the macro is called) or turn automoc on.
>>
>>
> Per the inclusion of my cmake instruction file at the end of the post,
> that is what I thought these two lines were for.
>
>     set(CMAKE_AUTOMOC TRUE)
>     set(CMAKE_INCLUDE_CURRENT_DIR ON)
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160505/eede88c7/attachment.html>


More information about the Interest mailing list