[Development] Installing Qt5Config.cmake from the Qt repo?

Thiago Macieira thiago at kde.org
Tue Nov 1 15:49:27 CET 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20111101/85446401/attachment.sig>


More information about the Development mailing list