• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision7990 (tree)
Time2019-08-20 00:27:06
Authorzmatsuo

Log Message

cmakeでスナップショットが作成できるようにした

- VS2005Express,mingwでもスナップショットが作成できるようになった

Change Summary

Incremental Difference

--- trunk/CMakeLists.txt (revision 7989)
+++ trunk/CMakeLists.txt (revision 7990)
@@ -12,6 +12,9 @@
1212 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
1313 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
1414
15+string(TIMESTAMP SNAPSHOT_DIR "snapshot-%Y%m%d_%H%M%S")
16+set(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/${SNAPSHOT_DIR}")
17+
1518 # _WIN32_WINNT_WIN10 0x0a00
1619 set(_WIN32_WINNT "0x0a00")
1720 if(MSVC)
@@ -106,6 +109,7 @@
106109 if(${ENABLE_TTXSAMPLES})
107110 add_subdirectory(TTXSamples)
108111 endif()
112+add_subdirectory(installer)
109113
110114 ####
111115 # ソースツリー内に生成ファイルが存在していたら削除する
--- trunk/TTProxy/CMakeLists.txt (revision 7989)
+++ trunk/TTProxy/CMakeLists.txt (revision 7990)
@@ -109,3 +109,9 @@
109109 gdi32
110110 comdlg32
111111 )
112+
113+install(
114+ TARGETS ttproxy
115+ RUNTIME
116+ DESTINATION .
117+ )
--- trunk/TTXKanjiMenu/CMakeLists.txt (revision 7989)
+++ trunk/TTXKanjiMenu/CMakeLists.txt (revision 7990)
@@ -37,4 +37,8 @@
3737 ws2_32
3838 )
3939
40-
40+install(
41+ TARGETS ttxkanjimenu
42+ RUNTIME
43+ DESTINATION .
44+ )
--- trunk/installer/CMakeLists.txt (nonexistent)
+++ trunk/installer/CMakeLists.txt (revision 7990)
@@ -0,0 +1,34 @@
1+
2+install(
3+ DIRECTORY release/
4+ DESTINATION .
5+ PATTERN *~ EXCLUDE
6+ PATTERN TERATERM.INI EXCLUDE
7+ )
8+
9+install(
10+ FILES release/EDITOR.CNF
11+ DESTINATION .
12+ RENAME KEYBOARD.CNF
13+ )
14+
15+if(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux")
16+ find_program(
17+ PERL perl
18+ )
19+else()
20+ # CYGWIN / Active Perl
21+ find_program(
22+ PERL perl.exe
23+ HINTS c:/Perl64/bin
24+ HINTS c:/Perl/bin
25+ HINTS c:/cygwin/usr/bin
26+ HINTS c:/cygwin64/usr/bin
27+ )
28+endif()
29+
30+add_custom_target(inifile
31+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/TERATERM.INI
32+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/setini.pl ${CMAKE_CURRENT_SOURCE_DIR}/release/TERATERM.INI > "${CMAKE_CURRENT_BINARY_DIR}/TERATERM.INI"
33+ COMMENT create "${CMAKE_CURRENT_BINARY_DIR}/TERATERM.INI"
34+ )
--- trunk/teraterm/keycode/CMakeLists.txt (revision 7989)
+++ trunk/teraterm/keycode/CMakeLists.txt (revision 7990)
@@ -28,3 +28,8 @@
2828 target_link_libraries(
2929 keycode
3030 )
31+
32+install(
33+ TARGETS keycode
34+ DESTINATION .
35+ )
--- trunk/teraterm/teraterm/CMakeLists.txt (revision 7989)
+++ trunk/teraterm/teraterm/CMakeLists.txt (revision 7990)
@@ -258,3 +258,8 @@
258258 configure_file(
259259 svnversion.h.in
260260 ../ttpdlg/svnversion.h @ONLY)
261+
262+install(
263+ TARGETS teraterm
264+ DESTINATION .
265+ )
--- trunk/teraterm/ttpcmn/CMakeLists.txt (revision 7989)
+++ trunk/teraterm/ttpcmn/CMakeLists.txt (revision 7990)
@@ -73,3 +73,9 @@
7373 setupapi
7474 delayimp
7575 )
76+
77+install(
78+ TARGETS ttpcmn
79+ RUNTIME
80+ DESTINATION .
81+ )
--- trunk/teraterm/ttpfile/CMakeLists.txt (revision 7989)
+++ trunk/teraterm/ttpfile/CMakeLists.txt (revision 7990)
@@ -71,3 +71,9 @@
7171 ttpfile
7272 ttpcmn
7373 )
74+
75+install(
76+ TARGETS ttpfile
77+ RUNTIME
78+ DESTINATION .
79+ )
--- trunk/teraterm/ttpmacro/CMakeLists.txt (revision 7989)
+++ trunk/teraterm/ttpmacro/CMakeLists.txt (revision 7990)
@@ -128,3 +128,8 @@
128128 ttpmacro
129129 ttpcmn
130130 )
131+
132+install(
133+ TARGETS ttpmacro
134+ DESTINATION .
135+ )
--- trunk/teraterm/ttpset/CMakeLists.txt (revision 7989)
+++ trunk/teraterm/ttpset/CMakeLists.txt (revision 7990)
@@ -50,3 +50,9 @@
5050 ttpset
5151 ttpcmn
5252 )
53+
54+install(
55+ TARGETS ttpset
56+ RUNTIME
57+ DESTINATION .
58+ )
--- trunk/teraterm/ttptek/CMakeLists.txt (revision 7989)
+++ trunk/teraterm/ttptek/CMakeLists.txt (revision 7990)
@@ -68,3 +68,9 @@
6868 ttptek
6969 ttpcmn
7070 )
71+
72+install(
73+ TARGETS ttptek
74+ RUNTIME
75+ DESTINATION .
76+ )
--- trunk/ttpmenu/CMakeLists.txt (revision 7989)
+++ trunk/ttpmenu/CMakeLists.txt (revision 7990)
@@ -51,4 +51,7 @@
5151 comdlg32
5252 )
5353
54-
54+install(
55+ TARGETS ttpmenu
56+ DESTINATION .
57+ )
--- trunk/ttssh2/ttxssh/CMakeLists.txt (revision 7989)
+++ trunk/ttssh2/ttxssh/CMakeLists.txt (revision 7990)
@@ -174,3 +174,9 @@
174174 WRITE ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
175175 "#define PUTTYVERSION \"${version_str}\"\n"
176176 )
177+
178+install(
179+ TARGETS ttxssh
180+ RUNTIME
181+ DESTINATION .
182+ )
Show on old repository browser