You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.8 KiB
48 lines
1.8 KiB
9 years ago
|
# - Find the QTermWidget include and library dirs and define a some macros
|
||
|
#
|
||
|
# The module defines the following variables
|
||
|
# QTERMWIDGET_FOUND - Set to TRUE if all of the above has been found
|
||
|
#
|
||
|
# QTERMWIDGET_INCLUDE_DIR - The QTermWidget include directory
|
||
|
#
|
||
|
# QTERMWIDGET_INCLUDE_DIRS - The QTermWidget include directory
|
||
|
#
|
||
|
# QTERMWIDGET_LIBRARIES - The libraries needed to use QTermWidget
|
||
|
#
|
||
|
# QTERMWIDGET_USE_FILE - The variable QTERMWIDGET_USE_FILE is set which is the path
|
||
|
# to a CMake file that can be included to compile qtermwidget
|
||
|
# applications and libraries. It sets up the compilation
|
||
|
# environment for include directories and populates a
|
||
|
# QTERMWIDGET_LIBRARIES variable.
|
||
|
#
|
||
|
# QTERMWIDGET_QT_LIBRARIES - The Qt libraries needed by QTermWidget
|
||
|
#
|
||
|
# Typical usage:
|
||
|
# option(USE_QT5 "Build using Qt5. Default off" OFF)
|
||
|
# if (USE_QT5)
|
||
|
# find_package(QTERMWIDGET4)
|
||
|
# else()
|
||
|
# find_package(QTERMWIDGET5)
|
||
|
# endif()
|
||
|
#
|
||
|
# include(${QTERMWIDGET_USE_FILE})
|
||
|
# add_executable(foo main.cpp)
|
||
|
# target_link_libraries(foo ${QTERMWIDGET_QT_LIBRARIES} ${QTERMWIDGET_LIBRARIES})
|
||
|
|
||
|
set(QTERMWIDGET_INCLUDE_DIR @QTERMWIDGET_INCLUDE_DIR@)
|
||
|
set(QTERMWIDGET_LIBRARY @QTERMWIDGET_LIBRARY_NAME@)
|
||
|
|
||
|
set(QTERMWIDGET_LIBRARIES ${QTERMWIDGET_LIBRARY})
|
||
|
set(QTERMWIDGET_INCLUDE_DIRS "${QTERMWIDGET_INCLUDE_DIR}")
|
||
|
|
||
|
set(QTERMWIDGET_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/qtermwidget4_use.cmake")
|
||
|
set(QTERMWIDGET_FOUND 1)
|
||
|
|
||
|
set(QTERMWIDGET_VERSION_MAJOR @QTERMWIDGET_VERSION_MAJOR@)
|
||
|
set(QTERMWIDGET_VERSION_MINOR @QTERMWIDGET_VERSION_MINOR@)
|
||
|
set(QTERMWIDGET_VERSION_PATCH @QTERMWIDGET_VERSION_PATCH@)
|
||
|
set(QTERMWIDGET_VERSION @QTERMWIDGET_VERSION@)
|
||
|
|
||
|
mark_as_advanced(QTERMWIDGET_LIBRARY QTERMWIDGET_INCLUDE_DIR)
|
||
|
|