Changeset 130 in pacpusframework for branches


Ignore:
Timestamp:
Jul 30, 2013, 2:11:53 PM (11 years ago)
Author:
Marek Kurdej
Message:

[cmake] Update: renamed and cached variable QT5 -> PACPUS_USE_QT5.

File:
1 edited

Legend:

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

    r127 r130  
    1515set(PACPUS_DEPENDENCIES_LIB "")
    1616
    17 if(NOT QT5)
     17set(PACPUS_USE_QT5 FALSE CACHE BOOL "Whether to use Qt5")
     18if(NOT PACPUS_USE_QT5)
    1819    find_package(Qt4)
    1920    if(NOT QT4_FOUND)
    2021        message(WARNING "Qt4 not found try to find Qt5")
    21         set(QT5 TRUE)
     22        set(PACPUS_USE_QT5 TRUE)
    2223    endif()
    2324endif()
    2425
    25 if(QT5)
     26if(PACPUS_USE_QT5)
    2627message(STATUS "Set CMake variable 'CMAKE_PREFIX_PATH' to the path like '%QT_BIN%/../lib/cmake'")
    2728# ========================================
     
    6263    ${Qt5SerialPort_INCLUDE_DIRS}
    6364)
    64 
    6565set(QT_LIBRARIES
    6666    ${Qt5Widgets_LIBRARIES}
     
    7777endif()
    7878
    79 else(QT5)
     79else()
    8080
    8181# ========================================
    82 # All the Pacpus' modules depends from Qt4
    83 # However, since each module requires specific Qt's modules, they have to include their own QT_USE_FILE
     82# All the Pacpus modules depend on Qt4
     83# However, since each module requires specific Qt modules, they have to include their own QT_USE_FILE
    8484# ========================================
    8585find_package(Qt4 REQUIRED)
    8686
    87 endif(QT5)
     87endif()
    8888
    8989# ========================================
     
    9898# ========================================
    9999if(PACPUS_USE_LOG)
    100 
    101100    if(WIN32 AND MSVC AND IS_BUILDING_PACPUS)
    102101        set(LOG4CXX_ROOT ${PACPUS_3RD_PARTY_DIR}/apache-log4cxx)
Note: See TracChangeset for help on using the changeset viewer.