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.
69 lines
1.1 KiB
69 lines
1.1 KiB
14 years ago
|
project(qtermwidget)
|
||
|
|
||
|
cmake_minimum_required(VERSION 2.6)
|
||
|
|
||
|
set(QT_MIN_VERSION 4.6.0)
|
||
|
|
||
|
find_package(Qt4 REQUIRED)
|
||
|
|
||
|
include(${QT_USE_FILE})
|
||
|
|
||
|
include_directories(
|
||
|
${QT_INCLUDES}
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||
|
.
|
||
|
)
|
||
|
|
||
|
link_directories(
|
||
|
.
|
||
|
)
|
||
|
|
||
|
set( qtermwidget_SRCS
|
||
|
qtermwidget.cpp
|
||
|
BlockArray.cpp
|
||
|
Emulation.cpp
|
||
|
Filter.cpp
|
||
|
History.cpp
|
||
|
k3processcontroller.cpp
|
||
|
k3process.cpp
|
||
|
KeyboardTranslator.cpp
|
||
|
konsole_wcwidth.cpp
|
||
|
kpty.cpp
|
||
|
Pty.cpp
|
||
|
Screen.cpp
|
||
|
ScreenWindow.cpp
|
||
|
Session.cpp
|
||
|
ShellCommand.cpp
|
||
|
TerminalCharacterDecoder.cpp
|
||
|
TerminalDisplay.cpp
|
||
|
Vt102Emulation.cpp
|
||
|
)
|
||
|
|
||
|
set( qtermwidget_HDRS
|
||
|
qtermwidget.h
|
||
|
Emulation.h
|
||
|
Filter.h
|
||
|
k3processcontroller.h
|
||
|
k3process.h
|
||
|
Pty.h
|
||
|
ScreenWindow.h
|
||
|
Session.h
|
||
|
TerminalDisplay.h
|
||
|
Vt102Emulation.h
|
||
|
)
|
||
|
|
||
|
add_definitions( -DQT_GUI_LIB -DQT_CORE_LIB -DHAVE_POSIX_OPENPT )
|
||
|
|
||
|
qt4_wrap_cpp( qtermwidget_MOC_SRCS
|
||
|
${qtermwidget_HDRS}
|
||
|
)
|
||
|
|
||
|
add_library (qtermwidget STATIC
|
||
|
${qtermwidget_SRCS}
|
||
|
${qtermwidget_MOC_SRCS}
|
||
|
${QT_QTCORE_LIBRARY}
|
||
|
${QT_QTGUI_LIBRARY}
|
||
|
)
|
||
|
|