Changeset 119 in pacpusframework for branches/2.0-beta1/cmake/PacpusDependencies.cmake


Ignore:
Timestamp:
06/28/13 16:56:24 (11 years ago)
Author:
morasjul
Message:

add Qt4 compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/cmake/PacpusDependencies.cmake

    r92 r119  
    1414set(PACPUS_DEPENDENCIES_INC "")
    1515set(PACPUS_DEPENDENCIES_LIB "")
     16
     17if(NOT QT5)
     18    find_package(Qt4)
     19    if(NOT QT4_FOUND)
     20        message(WARNING "Qt4 not found try to find Qt5")
     21        set(QT5 TRUE)
     22    endif()
     23endif()
     24
     25if(QT5)
    1626
    1727# ========================================
     
    6373endif()
    6474
     75else(QT5)
     76
     77# ========================================
     78# All the Pacpus' modules depends from Qt4
     79# However, since each module requires specific Qt's modules, they have to include their own QT_USE_FILE
     80# ========================================
     81find_package(Qt4 REQUIRED)
     82
     83endif(QT5)
     84
    6585# ========================================
    6686# Boost
Note: See TracChangeset for help on using the changeset viewer.