Browse Subversion Repository
Diff of /trunk/ttssh2/ttxssh/CMakeLists.txt
Parent Directory
| Revision Log
| Patch
| 1 |
set(PACKAGE_NAME "ttxssh") |
set(PACKAGE_NAME "ttxssh") |
| 2 |
|
|
| 3 |
|
option(TTXSSH_LIBRESSL "User LibreSSL" on) |
| 4 |
|
|
| 5 |
project(${PACKAGE_NAME}) |
project(${PACKAGE_NAME}) |
| 6 |
|
|
| 7 |
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_zlib.cmake) |
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_zlib.cmake) |
| 8 |
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_openssl.cmake) |
if(TTXSSH_LIBRESSL) |
| 9 |
|
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_libressl.cmake) |
| 10 |
|
else() |
| 11 |
|
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_openssl.cmake) |
| 12 |
|
endif() |
| 13 |
|
|
| 14 |
add_library( |
add_library( |
| 15 |
${PACKAGE_NAME} SHARED |
${PACKAGE_NAME} SHARED |
| 161 |
../../teraterm/common |
../../teraterm/common |
| 162 |
../matcher |
../matcher |
| 163 |
../putty |
../putty |
|
${OPENSSL_INCLUDE_DIRS} |
|
| 164 |
${ZLIB_INCLUDE_DIRS} |
${ZLIB_INCLUDE_DIRS} |
| 165 |
) |
) |
| 166 |
|
if(TTXSSH_LIBRESSL) |
| 167 |
|
target_include_directories( |
| 168 |
|
${PACKAGE_NAME} |
| 169 |
|
PRIVATE |
| 170 |
|
${LIBRESSL_INCLUDE_DIRS} |
| 171 |
|
) |
| 172 |
|
else() |
| 173 |
|
target_include_directories( |
| 174 |
|
${PACKAGE_NAME} |
| 175 |
|
PRIVATE |
| 176 |
|
${OPENSSL_INCLUDE_DIRS} |
| 177 |
|
) |
| 178 |
|
endif() |
| 179 |
|
|
| 180 |
|
|
| 181 |
set_target_properties( |
set_target_properties( |
| 182 |
${PACKAGE_NAME} |
${PACKAGE_NAME} |
| 207 |
ttpcmn |
ttpcmn |
| 208 |
argon2 |
argon2 |
| 209 |
${ZLIB_LIB} |
${ZLIB_LIB} |
|
${OPENSSL_LIB} |
|
| 210 |
) |
) |
| 211 |
|
|
| 212 |
|
if(TTXSSH_LIBRESSL) |
| 213 |
|
target_link_libraries( |
| 214 |
|
${PACKAGE_NAME} |
| 215 |
|
PRIVATE |
| 216 |
|
${LIBRESSL_LIB} |
| 217 |
|
bcrypt.lib |
| 218 |
|
) |
| 219 |
|
else() |
| 220 |
|
target_link_libraries( |
| 221 |
|
${PACKAGE_NAME} |
| 222 |
|
PRIVATE |
| 223 |
|
${OPENSSL_LIB} |
| 224 |
|
crypt32.lib # TODO このlibを使用しないパッチを適応したら削除すること |
| 225 |
|
) |
| 226 |
|
endif() |
| 227 |
|
|
| 228 |
if(SUPPORT_OLD_WINDOWS) |
if(SUPPORT_OLD_WINDOWS) |
| 229 |
target_link_libraries( |
target_link_libraries( |
| 230 |
${PACKAGE_NAME} |
${PACKAGE_NAME} |
| 240 |
gdi32 |
gdi32 |
| 241 |
comdlg32 |
comdlg32 |
| 242 |
comctl32 |
comctl32 |
|
# OpenSSL が使用 |
|
|
crypt32.lib # TODO このlibを使用しないパッチを適応したら削除すること |
|
| 243 |
) |
) |
| 244 |
|
|
| 245 |
install( |
install( |
|
|
Legend:
| Removed from v.9653 |
|
| changed lines |
| |
Added in v.9692 |
|
|
|