• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision9410 (tree)
Time2021-09-11 00:51:25
Authorzmatsuo

Log Message

プラグインを簡単に追加するためのフォルダを作成

Change Summary

Incremental Difference

--- trunk/CMakeLists.txt (revision 9409)
+++ trunk/CMakeLists.txt (revision 9410)
@@ -180,6 +180,9 @@
180180 add_subdirectory(doc)
181181 add_subdirectory(doc_internal)
182182 add_subdirectory(tools)
183+if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/TTXAdditional/CMakeLists.txt)
184+ add_subdirectory(TTXAdditional)
185+endif()
183186
184187 ### create buildinfo.txt
185188 configure_file(
--- trunk/TTXAdditional/CMakeLists_sample.txt (nonexistent)
+++ trunk/TTXAdditional/CMakeLists_sample.txt (revision 9410)
@@ -0,0 +1,46 @@
1+set(PACKAGE_NAME "TTXtest2")
2+
3+project(${PACKAGE_NAME})
4+
5+add_library(
6+ ${PACKAGE_NAME} SHARED
7+ ../TTXSamples/ttxtest/ttxtest.c
8+ )
9+
10+if(SUPPORT_OLD_WINDOWS)
11+ target_link_libraries(
12+ ${PACKAGE_NAME}
13+ PRIVATE
14+ layer_for_unicode
15+ )
16+ if(MSVC)
17+ target_sources(
18+ ${PACKAGE_NAME}
19+ PRIVATE
20+ ../teraterm/common/compat_w95_vs2005.c
21+ )
22+ endif()
23+ if(MINGW)
24+ target_sources(
25+ ${PACKAGE_NAME}
26+ PRIVATE
27+ ../teraterm/libmingw/tlssup.c
28+ )
29+ endif()
30+endif(SUPPORT_OLD_WINDOWS)
31+
32+set_target_properties(
33+ ${PACKAGE_NAME}
34+ PROPERTIES
35+ PREFIX ""
36+ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/"
37+ )
38+
39+target_include_directories(
40+ ${PACKAGE_NAME}
41+ PRIVATE
42+ ../teraterm/teraterm
43+ ../teraterm/common
44+ )
45+
46+set_target_properties(${PACKAGE_NAME} PROPERTIES FOLDER TTXAdditional)
--- trunk/TTXAdditional/REAME.md (nonexistent)
+++ trunk/TTXAdditional/REAME.md (revision 9410)
@@ -0,0 +1,4 @@
1+# 追加プラグインフォルダ
2+
3+- cmakeビルドでのみ有効
4+- このフォルダに CMakeLists.txt を置くと自動的にビルドされる
Show on old repository browser