File: CMakeLists.txt.win32

package info (click to toggle)
fqterm 0.9.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 5,108 kB
  • sloc: cpp: 49,385; ansic: 2,183; javascript: 1,026; python: 348; sh: 29; makefile: 19
file content (83 lines) | stat: -rw-r--r-- 1,522 bytes parent folder | download | duplicates (2)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
set(OPENSSL_INCLUDE_DIR
"C:/openssl/include"
)

set(OPENSSL_LIBRARIES
"C:/openssl/lib/libeay32.lib"
"C:/openssl/lib/ssleay32.lib"
)

set(NETWORK_LIBRARIES
"ws2_32.lib"
)

SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Zi /Od /MD")

ADD_DEFINITIONS(/D USE_DOTNET_STYLE)
ADD_DEFINITIONS(/D _CRT_SECURE_NO_DEPRECATE)

if(FQTERM_USE_STATIC_QT)
  ADD_DEFINITIONS(/D FQTERM_USE_STATIC_QT)
  REMOVE_DEFINITIONS(-DQT_DLL)
endif(FQTERM_USE_STATIC_QT)

set(fqterm_RCS
  fqterm.rc
)

include_directories(
  ${QT_INCLUDE_DIR}
  ${QT_QTCORE_INCLUDE_DIR}
  ${QT_QTGUI_INCLUDE_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/src/common
  ${CMAKE_CURRENT_SOURCE_DIR}/src/protocol
  ${CMAKE_CURRENT_SOURCE_DIR}/src/terminal
  ${CMAKE_CURRENT_SOURCE_DIR}/src/utilities
  ${CMAKE_CURRENT_SOURCE_DIR}/src/ui
)

link_directories(
  ${QT_PLUGINS_DIR}/codecs
  ${QT_PLUGINS_DIR}/imageformats
)

ADD_EXECUTABLE(fqterm
  src/fqterm/main.cpp
)

if(FQTERM_USE_STATIC_QT)
  set(FQ_QT_STATIC_PLUGINS
  qcncodecs qjpcodecs qkrcodecs qtwcodecs
  qjpeg qgif qmng
  )
  set(SOUND_LIBRARIES
  "winmm.lib"
  )

  set(IME_LIBRARIES
  "Imm32.lib"
  )
endif(FQTERM_USE_STATIC_QT)

target_link_libraries(fqterm
  ${FQTERM_LIBS}
  ${QT_LIBRARIES}
  ${QT_QTNETWORK_LIBRARIES}
  ${QT_QTSCRIPT_LIBRARIES}
  ${QT_QTXML_LIBRARIES}
  ${OPENSSL_CRYPTO_LIBRARY}
  ${FQ_QT_STATIC_PLUGINS}
  ${PYTHON_LIB}
  ${SOUND_LIBRARIES}
  ${NETWORK_LIBRARIES}
  ${IME_LIBRARIES}
)

add_dependencies(fqterm
  fqterm_main
  fqterm_common
  fqterm_terminal
  fqterm_protocol
  fqterm_ui
  fqterm_utilities
)