Changeset 130 in pacpusframework
- Timestamp:
- Jul 30, 2013, 2:11:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/cmake/PacpusDependencies.cmake
r127 r130 15 15 set(PACPUS_DEPENDENCIES_LIB "") 16 16 17 if(NOT QT5) 17 set(PACPUS_USE_QT5 FALSE CACHE BOOL "Whether to use Qt5") 18 if(NOT PACPUS_USE_QT5) 18 19 find_package(Qt4) 19 20 if(NOT QT4_FOUND) 20 21 message(WARNING "Qt4 not found try to find Qt5") 21 set( QT5 TRUE)22 set(PACPUS_USE_QT5 TRUE) 22 23 endif() 23 24 endif() 24 25 25 if( QT5)26 if(PACPUS_USE_QT5) 26 27 message(STATUS "Set CMake variable 'CMAKE_PREFIX_PATH' to the path like '%QT_BIN%/../lib/cmake'") 27 28 # ======================================== … … 62 63 ${Qt5SerialPort_INCLUDE_DIRS} 63 64 ) 64 65 65 set(QT_LIBRARIES 66 66 ${Qt5Widgets_LIBRARIES} … … 77 77 endif() 78 78 79 else( QT5)79 else() 80 80 81 81 # ======================================== 82 # All the Pacpus ' modules depends fromQt483 # However, since each module requires specific Qt 'smodules, they have to include their own QT_USE_FILE82 # 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 84 84 # ======================================== 85 85 find_package(Qt4 REQUIRED) 86 86 87 endif( QT5)87 endif() 88 88 89 89 # ======================================== … … 98 98 # ======================================== 99 99 if(PACPUS_USE_LOG) 100 101 100 if(WIN32 AND MSVC AND IS_BUILDING_PACPUS) 102 101 set(LOG4CXX_ROOT ${PACPUS_3RD_PARTY_DIR}/apache-log4cxx)
Note:
See TracChangeset
for help on using the changeset viewer.