summaryrefslogtreecommitdiff
path: root/src/terminal/CMakeLists.txt
blob: 5abe2c638d53b29587cf49f51edf8776c22bc30e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
set(CMAKE_AUTOMOC ON)

set(export_SRCS
  fqterm_buffer.h
  fqterm_session.h
  fqterm_text_line.h
  fqterm_session.cpp
  fqterm_buffer.cpp
  fqterm_text_line.cpp
)

set(internal_SRCS
  internal/fqterm_decode.h
  internal/fqterm_telnet.h
  internal/fqterm_zmodem.h
  internal/fqterm_decode.cpp
  internal/fqterm_telnet.cpp
  internal/fqterm_zmodem.cpp
)

include_directories(
  ${QT_INCLUDE_DIR}
  ${QT_QTCORE_INCLUDE_DIR}
  ${QT_QTGUI_INCLUDE_DIR}
  ${QT_QTNETWORK_INCLUDE_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/internal
  ${CMAKE_CURRENT_SOURCE_DIR}/../common
  ${CMAKE_CURRENT_SOURCE_DIR}/../utilities
  ${CMAKE_CURRENT_SOURCE_DIR}/../protocol
)

add_library(fqterm_terminal
  ${export_SRCS}
  ${internal_SRCS}
)

add_dependencies(fqterm_terminal
  fqterm_common
  fqterm_protocol
  fqterm_utilities
)

if(USE_QT5)
  find_package(Qt5Core REQUIRED)
  find_package(Qt5Network REQUIRED)
  find_package(Qt5Widgets REQUIRED)
  target_link_libraries(fqterm_terminal Qt5::Core Qt5::Widgets Qt5::Network)
else(USE_QT5)
endif(USE_QT5)