diff options
| author | Stephen Kelly <steveire@gmail.com> | 2013-03-24 20:28:47 +0100 | 
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2013-03-24 20:28:47 +0100 | 
| commit | a18ee640ea4c0f22259f1d596e376a8f64521e8b (patch) | |
| tree | f46fc1d41622f6c3827b5d056e18966bb92f1927 /find-modules/FindQt5Transitional.cmake | |
| parent | 8ee05afd85b471bea58739393b1cfc9367837a4e (diff) | |
| download | extra-cmake-modules-a18ee640ea4c0f22259f1d596e376a8f64521e8b.tar.gz extra-cmake-modules-a18ee640ea4c0f22259f1d596e376a8f64521e8b.tar.bz2 | |
Set the INTERFACE_INCLUDE_DIRECTORIES for all available Qt components.
Not only the ones explicitly searched for.
Diffstat (limited to 'find-modules/FindQt5Transitional.cmake')
| -rw-r--r-- | find-modules/FindQt5Transitional.cmake | 46 | 
1 files changed, 23 insertions, 23 deletions
| diff --git a/find-modules/FindQt5Transitional.cmake b/find-modules/FindQt5Transitional.cmake index 55306b48..f94ae40d 100644 --- a/find-modules/FindQt5Transitional.cmake +++ b/find-modules/FindQt5Transitional.cmake @@ -2,29 +2,29 @@  find_package(Qt5Core QUIET)  if (Qt5Core_FOUND) +  set(_allComponents +      Core +      Gui +      DBus +      Designer +      Declarative +      Script +      ScriptTools +      Network +      Test +      Xml +      Svg +      Sql +      Widgets +      PrintSupport +      Concurrent +      UiTools +      WebKit +      WebKitWidgets +      OpenGL +    )    if (NOT Qt5Transitional_FIND_COMPONENTS) -    set(_components -        Core -        Gui -        DBus -        Designer -        Declarative -        Script -        ScriptTools -        Network -        Test -        Xml -        Svg -        Sql -        Widgets -        PrintSupport -        Concurrent -        UiTools -        WebKit -        WebKitWidgets -        OpenGL -      ) -    foreach(_component ${_components}) +    foreach(_component ${_allComponents})        find_package(Qt5${_component})        list(APPEND QT_LIBRARIES ${Qt5${_component}_LIBRARIES}) @@ -56,7 +56,7 @@ if (Qt5Core_FOUND)    set(QT5_BUILD TRUE)    # Temporary until upstream does this: -  foreach(_component ${_components}) +  foreach(_component ${_allComponents})      if (TARGET Qt5::${_component})        set_property(TARGET Qt5::${_component}          APPEND PROPERTY | 
