代码拉取完成,页面将自动刷新
project(qterm)
include(CTest)
include(FeatureSummary)
cmake_minimum_required(VERSION 2.8.11 FATAL_ERROR)
set(QTERM_VERSION_MAJOR 0)
set(QTERM_VERSION_MINOR 7)
set(QTERM_VERSION_RELEASE 4)
set(QTERM_VERSION "${QTERM_VERSION_MAJOR}.${QTERM_VERSION_MINOR}.${QTERM_VERSION_RELEASE}" )
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_AUTOMOC ON)
IF(QT5)
find_package(Qt5Core 5.3.0 REQUIRED)
find_package(Qt5Gui 5.3.0 REQUIRED)
find_package(Qt5Widgets 5.3.0 REQUIRED)
find_package(Qt5Xml 5.3.0 REQUIRED)
find_package(Qt5Network 5.3.0 REQUIRED)
find_package(Qt5PrintSupport 5.3.0 REQUIRED)
find_package(Qt5LinguistTools 5.3.0 REQUIRED)
find_package(Qt5Help 5.3.0 REQUIRED)
find_package(Qt5Script 5.3.0)
find_package(Qt5ScriptTools 5.3.0)
find_package(Qt5Multimedia 5.3.0)
IF(NOT QT_BINARY_DIR)
exec_program(${_qt5Core_install_prefix}/bin/qmake ARGS "-query QT_INSTALL_BINS"
OUTPUT_VARIABLE QT_BINARY_DIR)
ENDIF()
ELSE(QT5)
find_package(Qt4 4.5.0 REQUIRED)
find_package(KDE4)
ENDIF(QT5)
IF(WIN32 AND MSVC)
ADD_DEFINITIONS (/D _CRT_SECURE_NO_WARNINGS)
ENDIF(WIN32 AND MSVC)
IF(APPLE)
SET (PROGRAME QTerm)
SET (MACOSX_BUNDLE_BUNDLE_NAME ${PROGRAME})
SET (MACOSX_BUNDLE_GUI_IDENTIFIER "org.qterm")
SET (MACOSX_BUNDLE_INFO_STRING "${PROGRAME} ${QTERM_VERSION}")
SET (MACOSX_BUNDLE_BUNDLE_VERSION ${QTERM_VERSION})
SET (MACOSX_BUNDLE_LONG_VERSION_STRING ${QTERM_VERSION})
SET (MACOSX_BUNDLE_SHORT_VERSION_STRING "${QTERM_VERSION_MAJOR}.${QTERM_VERSION_MINOR}")
SET (MACOSX_BUNDLE_ICON_FILE QTerm.icns)
SET (MACOSX_BUNDLE_COPYRIGHT "The QTerm Project")
ELSE(APPLE)
SET (PROGRAME qterm)
ENDIF(APPLE)
include("package.cmake")
add_subdirectory(src)
add_subdirectory(icons)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
if (NOT TARGET uninstall)
add_custom_target(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
endif(NOT TARGET uninstall)
feature_summary(WHAT ALL)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。