Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/teraterm/teraterm/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10804 - (show annotations) (download)
Sun Jul 23 07:07:16 2023 UTC (10 months, 1 week ago) by zmatsuo
File MIME type: text/plain
File size: 7643 byte(s)
ログダイアログを logdlg.cpp,h に分離した

- teraterm/teraterm/logdlg.cpp,h 追加
1 set(PACKAGE_NAME "teraterm")
2
3 project(${PACKAGE_NAME})
4
5 option(ENABLE_GDIPLUS "Use GDI+ library" ON)
6
7 include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_SFMT.cmake)
8 include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_oniguruma.cmake)
9
10 set(ENABLE_DEBUG_INFO 1)
11
12 add_executable(
13 ${PACKAGE_NAME} WIN32
14 ${CMAKE_CURRENT_BINARY_DIR}/../common/svnversion.h
15 WSAAsyncGetAddrInfo.c
16 WSAAsyncGetAddrInfo.h
17 broadcast.cpp
18 broadcast.h
19 buffer.c
20 buffer.h
21 charset.cpp
22 charset.h
23 checkeol.cpp
24 checkeol.h
25 clipboar.c
26 clipboar.h
27 commlib.c
28 commlib.h
29 filesys.cpp
30 filesys.h
31 filesys_log.cpp
32 filesys_log.rc
33 filesys_log_res.h
34 filesys_proto.cpp
35 filesys_proto.h
36 keyboard.c
37 keyboard.h
38 prnabort.cpp
39 prnabort.h
40 scp.cpp
41 scp.h
42 sendmem.cpp
43 sendmem.h
44 sizetip.c
45 sizetip.h
46 teklib.c
47 teklib.h
48 tekwin.cpp
49 tekwin.h
50 telnet.c
51 telnet.h
52 teraprn.cpp
53 teraprn.h
54 teraterm.cpp
55 teraterm_manifest.rc
56 teraterml.h
57 theme.h
58 themefile.cpp
59 tt-version.rc
60 ttdde.c
61 ttdde.h
62 ttdebug.cpp
63 ttdebug.h
64 ttdialog.c
65 ttdialog.h
66 ttermpro.rc
67 ttfileio.c
68 ttfileio.h
69 ttime.c
70 ttime.h
71 ttplug.c
72 ttplug.h
73 ttsetup.c
74 ttsetup.h
75 ttwinman.c
76 ttwinman.h
77 ttwsk.c
78 ttwsk.h
79 unicode.cpp
80 unicode.h
81 unicode_test.h
82 vtdisp.c
83 vtdisp.h
84 vtterm.c
85 vtterm.h
86 vtwin.cpp
87 vtwin.h
88 winjump.c
89 winjump.h
90 )
91
92 set(SRC_DIALOG
93 addsetting.cpp
94 addsetting.h
95 clipboarddlg.cpp
96 clipboarddlg.h
97 coding_pp.cpp
98 coding_pp.h
99 coding_pp.rc
100 coding_pp_res.h
101 debug_pp.cpp
102 debug_pp.h
103 debug_pp.rc
104 debug_pp_res.h
105 dnddlg.cpp
106 dnddlg.h
107 font_pp.cpp
108 font_pp.h
109 font_pp.rc
110 font_pp_res.h
111 ftdlg.cpp
112 ftdlg.h
113 ftdlg_lite.cpp
114 ftdlg_lite.h
115 logdlg.cpp
116 logdlg.h
117 protodlg.cpp
118 protodlg.h
119 sendfiledlg.cpp
120 sendfiledlg.h
121 setupdirdlg.cpp
122 setupdirdlg.h
123 themedlg.cpp
124 themedlg.h
125 themedlg.rc
126 themedlg_res.h
127 )
128
129 target_sources(
130 ${PACKAGE_NAME}
131 PRIVATE
132 ${SRC_DIALOG}
133 )
134
135 source_group(
136 "dialog"
137 FILES ${SRC_DIALOG})
138
139 target_sources(
140 ${PACKAGE_NAME}
141 PRIVATE
142 ../teraterm/uni2sjis.map
143 ../teraterm/unisym2decsp.map
144 ../ttpcmn/sjis2uni.map
145 uni_combining.map
146 unicode_asian_width.tbl
147 unicode_combine.tbl
148 unicode_emoji.tbl
149 )
150
151 source_group(
152 "table_datas"
153 REGULAR_EXPRESSION
154 "(map|tbl)$"
155 )
156
157 target_sources(
158 ${PACKAGE_NAME}
159 PRIVATE
160 ../common/tt_res.h
161 ../common/ttcommon.h
162 ../common/ttddecmnd.h
163 ../common/tttypes.h
164 ../common/tektypes.h
165 ../common/ttplugin.h
166 ../common/tt-version.h
167 ../common/teraterm.h
168 ../common/ttlib.c
169 ../common/ttlib.h
170 ../common/dlglib.h
171 ../common/codemap.h
172 ../common/compat_win.h
173 ../common/tmfc.h
174 ../common/i18n.h
175 ../common/dllutil.h
176 ../common/codeconv.h
177 ../common/tipwin.h
178 )
179
180 target_sources(
181 ${PACKAGE_NAME}
182 PRIVATE
183 ../susie_plugin/libsusieplugin.cpp
184 ../susie_plugin/libsusieplugin.h
185 )
186
187 source_group(
188 "common"
189 REGULAR_EXPRESSION
190 "..\/common\/"
191 )
192
193 target_sources(
194 ${PACKAGE_NAME}
195 PRIVATE
196 ../ttpdlg/dlg_res.h
197 ../ttpdlg/ttdlg.c
198 ../ttpdlg/ttdlg.h
199 ../ttpdlg/ttpdlg.rc
200 )
201
202 source_group(
203 "ttpdlg"
204 REGULAR_EXPRESSION
205 "..\/ttpdlg\/")
206
207 target_sources(
208 ${PACKAGE_NAME}
209 PRIVATE
210 ../ttpfile/bplus.c
211 ../ttpfile/bplus.h
212 ../ttpfile/filesys_io.h
213 ../ttpfile/filesys_win32.cpp
214 ../ttpfile/filesys_win32.h
215 ../ttpfile/ftlib.c
216 ../ttpfile/ftlib.h
217 ../ttpfile/kermit.c
218 ../ttpfile/kermit.h
219 ../ttpfile/protolog.cpp
220 ../ttpfile/protolog.h
221 ../ttpfile/quickvan.c
222 ../ttpfile/quickvan.h
223 ../ttpfile/xmodem.c
224 ../ttpfile/xmodem.h
225 ../ttpfile/ymodem.c
226 ../ttpfile/ymodem.h
227 ../ttpfile/zmodem.c
228 ../ttpfile/zmodem.h
229 )
230
231 source_group(
232 "ttpfile"
233 REGULAR_EXPRESSION
234 "..\/ttpfile\/")
235
236 target_sources(
237 ${PACKAGE_NAME}
238 PRIVATE
239 ../ttpset/ttset.c
240 ../ttpset/ttset.h
241 ../ttpset/ttset_i.h
242 ../ttpset/ttset_keyboard.c
243 )
244
245 source_group(
246 "ttpset"
247 REGULAR_EXPRESSION
248 "..\/ttpset\/")
249
250 target_sources(
251 ${PACKAGE_NAME}
252 PRIVATE
253 ../ttpcmn/ttcmn_dup.cpp
254 ../ttpcmn/ttcmn_dup.h
255 ../ttpcmn/ttcmn_shared_memory.h
256 ../ttpcmn/ttcmn_static.c
257 ../ttpcmn/ttcmn_static.h
258 )
259
260 source_group(
261 "ttpcmn"
262 REGULAR_EXPRESSION
263 "..\/ttpcmn\/")
264
265 if(SUPPORT_OLD_WINDOWS)
266 if(MSVC)
267 if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
268 set(CMAKE_C_STANDARD_LIBRARIES "")
269 set(CMAKE_CXX_STANDARD_LIBRARIES "")
270 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB")
271 else()
272 target_link_options(
273 ${PACKAGE_NAME}
274 PRIVATE
275 /NODEFAULTLIB
276 )
277 endif()
278 target_sources(
279 ${PACKAGE_NAME}
280 PRIVATE
281 ../../teraterm/common/compat_w95_vs2005.c
282 )
283 endif()
284 if(MINGW)
285 target_link_libraries(
286 ${PACKAGE_NAME}
287 PRIVATE
288 -Wl,--whole-archive
289 mingw_msvcrt
290 -Wl,--no-whole-archive
291 )
292 endif()
293 endif(SUPPORT_OLD_WINDOWS)
294
295 if (MSVC)
296 if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
297 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
298 else()
299 target_link_options(
300 ${PACKAGE_NAME}
301 PRIVATE
302 /MANIFEST:NO)
303 endif()
304 endif()
305
306 set_target_properties(
307 ${PACKAGE_NAME}
308 PROPERTIES
309 OUTPUT_NAME "ttermpro"
310 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/"
311 )
312
313 target_include_directories(
314 ${PACKAGE_NAME}
315 PRIVATE
316 .
317 ../teraterm
318 ../ttpfile
319 ../ttpdlg
320 ../ttpcmn
321 ../susie_plugin
322 ${ONIGURUMA_INCLUDE_DIRS}
323 ${SFMT_INCLUDE_DIRS}
324 )
325
326 if(MINGW)
327 target_include_directories(
328 ${PACKAGE_NAME}
329 PRIVATE
330 .
331 )
332 endif()
333
334 if(MSVC AND ENABLE_DEBUG_INFO)
335 target_compile_options(
336 ${PACKAGE_NAME}
337 PRIVATE
338 $<$<CONFIG:Release>:/Zi>
339 )
340 if(${CMAKE_VERSION} VERSION_GREATER "3.13")
341 target_link_options(
342 ${PACKAGE_NAME}
343 PRIVATE
344 /DEBUG:FULL
345 /pdbaltpath:ttermpro.pdb
346 /map
347 )
348 else()
349 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /map")
350 endif()
351 elseif(MINGW)
352 target_link_options(
353 ${PACKAGE_NAME}
354 PRIVATE
355 -Wl,-Map=ttermpro.map,-cref
356 )
357 endif()
358
359 if(ENABLE_GDIPLUS)
360 target_compile_options(
361 ${PACKAGE_NAME}
362 PRIVATE "-DENABLE_GDIPLUS=1"
363 )
364 else(ENABLE_GDIPLUS)
365 target_compile_options(
366 ${PACKAGE_NAME}
367 PRIVATE "-DENABLE_GDIPLUS=0"
368 )
369 endif(ENABLE_GDIPLUS)
370
371 target_link_libraries(
372 ${PACKAGE_NAME}
373 PRIVATE
374 common_static
375 ttpcmn
376 ttptek
377 cyglib
378 ${ONIGURUMA_LIB}
379 ${SFMT_LIB}
380 )
381
382 if(SUPPORT_OLD_WINDOWS)
383 target_link_libraries(
384 ${PACKAGE_NAME}
385 PRIVATE
386 layer_for_unicode
387 )
388 endif()
389
390 target_link_libraries(
391 ${PACKAGE_NAME}
392 PRIVATE
393 advapi32
394 comctl32
395 comdlg32
396 gdi32
397 imagehlp
398 kernel32
399 ole32
400 oleaut32
401 shell32
402 user32
403 uuid
404 ws2_32
405 )
406
407 if(ENABLE_GDIPLUS)
408 target_link_libraries(
409 ${PACKAGE_NAME}
410 PRIVATE
411 gdiplus.lib
412 )
413 endif(ENABLE_GDIPLUS)
414
415 install(
416 TARGETS ${PACKAGE_NAME}
417 DESTINATION .
418 )
419 if(MSVC AND ENABLE_DEBUG_INFO AND (${CMAKE_VERSION} VERSION_GREATER "3.13"))
420 if("${CMAKE_GENERATOR}" MATCHES "Visual Studio")
421 install(
422 FILES
423 $<TARGET_PDB_FILE:teraterm>
424 $<CONFIG>/ttermpro.map
425 DESTINATION .
426 )
427 else()
428 # single configuration like "NMake Makefiles"
429 install(
430 FILES
431 $<TARGET_PDB_FILE:teraterm>
432 ${CMAKE_BINARY_DIR}/ttermpro.map
433 DESTINATION .
434 )
435 endif()
436 endif()

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26