On Tuesday, 1 de November de 2011 15:44:18 Stephen Kelly wrote:
> find_package(Qt5 REQUIRED Core Gui Widgets)
> include(${Qt5_USE_FILE})
> 
> add_library(itemmodels SHARED ${itemmodels_SRCS})
> target_link_libraries(itemmodels
>     ${Qt5Core_LIBRARY} 
>     ${Qt5Gui_LIBRARY} 
>     ${Qt5Widgets_LIBRARY}
> )

Where's the include_directories call?

if that's hidden in that ${Qt5_USE_FILE}, can you have different use-files per 
target? For example, a test associated with that library above will need to 
include and link to QtTest.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to