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 7560 - (hide annotations) (download)
Mon Apr 8 17:12:02 2019 UTC (5 years ago) by zmatsuo
File MIME type: text/plain
File size: 3161 byte(s)
ttssh 高DPI対応
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 zmatsuo 7560 ../../teraterm/common/ttlib.c
18 zmatsuo 7456 ../../teraterm/common/dlglib.h
19 zmatsuo 7560 ../../teraterm/common/dlglib.c
20     ../../teraterm/common/dlglib_cpp.cpp
21     ../../teraterm/common/dlglib_tmpl.cpp
22 zmatsuo 7456 ../../teraterm/common/servicenames.h
23     ../../teraterm/common/codeconv.cpp
24     ../../teraterm/common/codeconv.h
25 zmatsuo 7507 ../../teraterm/common/tipwin.cpp
26     ../../teraterm/common/tipwin.h
27 zmatsuo 7456 )
28    
29     source_group(
30     "common"
31     FILES
32     ${COMMON_SRC}
33     )
34    
35     set(SRC
36     ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
37     ../matcher/matcher.c
38     arc4random.c
39     arc4random.h
40     auth.c
41     auth.h
42     buffer.c
43     buffer.h
44     chacha.c
45     chacha.h
46     cipher.h
47     cipher-ctr.c
48     config.h
49     crypt.c
50     crypt.h
51     dns.c
52     dns.h
53     ed25519.c
54     ed25519_bcrypt_pbkdf.c
55     ed25519_blf.h
56     ed25519_blocks.c
57     ed25519_blowfish.c
58     ed25519_crypto_api.h
59     ed25519_fe25519.c
60     ed25519_fe25519.h
61     ed25519_ge25519.c
62     ed25519_ge25519.h
63     ed25519_hash.c
64     ed25519_sc25519.c
65     ed25519_sc25519.h
66     ed25519_verify.c
67     fwd.c
68     fwd.h
69     fwd-socks.c
70     fwd-socks.h
71     fwdui.c
72     fwdui.h
73     hosts.c
74     hosts.h
75     kex.c
76     kex.h
77     key.c
78     key.h
79     keyfiles.c
80     keyfiles.h
81     pkt.c
82     pkt.h
83     resource.h
84     sftp.c
85     sftp.h
86     ssh.c
87     ssh.h
88     ttxssh.c
89     ttxssh.def
90     ttxssh.h
91     ttxssh.rc
92     ttxssh-version.h
93     ttxssh-version.rc
94     util.c
95     util.h
96     x11util.c
97     x11util.h
98     ${COMMON_SRC}
99     )
100    
101    
102     include_directories(
103     ../../teraterm/teraterm
104     ../../teraterm/common
105     ../matcher
106     ../putty
107     ${OPENSSL_INCLUDE_DIRS}
108     ${ZLIB_INCLUDE_DIRS}
109     )
110    
111     link_directories(
112     ${ZLIB_LIBRARY_DIRS}
113     )
114    
115     if (MSVC)
116     set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DELAYLOAD:dnsapi.dll")
117     endif()
118    
119     add_library(
120     ttxssh SHARED
121     ${SRC}
122     )
123    
124 zmatsuo 7536 set_target_properties(
125     ttxssh
126     PROPERTIES
127     PREFIX ""
128     )
129    
130 zmatsuo 7456 target_link_libraries(
131     ttxssh
132     libputty
133     ttpcmn
134     debug zlibstaticd
135     optimized zlibstatic
136     ${OPENSSL_LIB}
137     #
138     ws2_32
139     dnsapi
140     gdi32
141     comdlg32
142     delayimp
143     )
144    
145     ### create puttyversion.h
146    
147 zmatsuo 7532 set(PUTTY_ISS "${CMAKE_SOURCE_DIR}/libs/putty/windows/putty.iss")
148     if(NOT EXISTS ${PUTTY_ISS})
149     message(FATAL_ERROR "${PUTTY_ISS} not found")
150     endif()
151    
152 zmatsuo 7456 file(READ "${CMAKE_SOURCE_DIR}/libs/putty/windows/putty.iss" iis)
153    
154     string(REGEX MATCH "VersionInfoTextVersion=([^\n]+)\n" _ ${iis})
155     set(version_str ${CMAKE_MATCH_1})
156     if("${version_str}" STREQUAL "")
157     string(REGEX MATCH "AppVerName=([^\n]+)\n" _ ${iis})
158     set(version_str ${CMAKE_MATCH_1})
159     endif()
160     if("${version_str}" STREQUAL "")
161     set(version_str "unknown")
162     endif()
163     message("putty version=\"${version_str}\"")
164     FILE(
165     WRITE ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h
166     "#define PUTTYVERSION \"${version_str}\"\n"
167     )

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