Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/ttssh2/ttxssh/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7456 - (hide annotations) (download)
Sat Mar 2 16:18:47 2019 UTC (5 years, 1 month ago) by zmatsuo
File MIME type: text/plain
File size: 2719 byte(s)
cmakeを使用したビルドを追加(experimental)
1 zmatsuo 7456 project(ttxssh)
2    
3     set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/")
4    
5     include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_zlib.cmake)
6     include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_openssl.cmake)
7    
8     if(USE_UNICODE_API)
9     add_definitions(-DUNICODE -D_UNICODE)
10     endif()
11    
12     set(COMMON_SRC
13     ../../teraterm/teraterm/WSAAsyncGetAddrInfo.c
14     ../../teraterm/common/ttcommon.h
15     ../../teraterm/common/i18n.h
16     ../../teraterm/common/ttlib.h
17     ../../teraterm/common/dlglib.h
18     ../../teraterm/common/servicenames.h
19     ../../teraterm/common/codeconv.cpp
20     ../../teraterm/common/codeconv.h
21     )
22    
23     source_group(
24     "common"
25     FILES
26     ${COMMON_SRC}
27     )
28    
29     set(SRC
30     ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
31     ../matcher/matcher.c
32     arc4random.c
33     arc4random.h
34     auth.c
35     auth.h
36     buffer.c
37     buffer.h
38     chacha.c
39     chacha.h
40     cipher.h
41     cipher-ctr.c
42     config.h
43     crypt.c
44     crypt.h
45     dns.c
46     dns.h
47     ed25519.c
48     ed25519_bcrypt_pbkdf.c
49     ed25519_blf.h
50     ed25519_blocks.c
51     ed25519_blowfish.c
52     ed25519_crypto_api.h
53     ed25519_fe25519.c
54     ed25519_fe25519.h
55     ed25519_ge25519.c
56     ed25519_ge25519.h
57     ed25519_hash.c
58     ed25519_sc25519.c
59     ed25519_sc25519.h
60     ed25519_verify.c
61     fwd.c
62     fwd.h
63     fwd-socks.c
64     fwd-socks.h
65     fwdui.c
66     fwdui.h
67     hosts.c
68     hosts.h
69     kex.c
70     kex.h
71     key.c
72     key.h
73     keyfiles.c
74     keyfiles.h
75     pkt.c
76     pkt.h
77     resource.h
78     sftp.c
79     sftp.h
80     ssh.c
81     ssh.h
82     ttxssh.c
83     ttxssh.def
84     ttxssh.h
85     ttxssh.rc
86     ttxssh-version.h
87     ttxssh-version.rc
88     util.c
89     util.h
90     x11util.c
91     x11util.h
92     ${COMMON_SRC}
93     )
94    
95    
96     include_directories(
97     ../../teraterm/teraterm
98     ../../teraterm/common
99     ../matcher
100     ../putty
101     ${OPENSSL_INCLUDE_DIRS}
102     ${ZLIB_INCLUDE_DIRS}
103     )
104    
105     link_directories(
106     ${ZLIB_LIBRARY_DIRS}
107     )
108    
109     if (MSVC)
110     set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DELAYLOAD:dnsapi.dll")
111     endif()
112    
113     add_library(
114     ttxssh SHARED
115     ${SRC}
116     )
117    
118     target_link_libraries(
119     ttxssh
120     libputty
121     ttpcmn
122     debug zlibstaticd
123     optimized zlibstatic
124     ${OPENSSL_LIB}
125     #
126     ws2_32
127     dnsapi
128     gdi32
129     comdlg32
130     delayimp
131     )
132    
133     ### create puttyversion.h
134    
135     file(READ "${CMAKE_SOURCE_DIR}/libs/putty/windows/putty.iss" iis)
136    
137     string(REGEX MATCH "VersionInfoTextVersion=([^\n]+)\n" _ ${iis})
138     set(version_str ${CMAKE_MATCH_1})
139     if("${version_str}" STREQUAL "")
140     string(REGEX MATCH "AppVerName=([^\n]+)\n" _ ${iis})
141     set(version_str ${CMAKE_MATCH_1})
142     endif()
143     if("${version_str}" STREQUAL "")
144     set(version_str "unknown")
145     endif()
146     message("putty version=\"${version_str}\"")
147     FILE(
148     WRITE ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
149     "#define PUTTYVERSION \"${version_str}\"\n"
150     )

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