Browse Subversion Repository
Diff of /trunk/ttssh2/ttxssh/CMakeLists.txt
Parent Directory
| Revision Log
| Patch
| 1 |
project(ttxssh) |
set(PACKAGE_NAME "ttxssh") |
| 2 |
|
|
| 3 |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/") |
project(${PACKAGE_NAME}) |
| 4 |
|
|
| 5 |
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_zlib.cmake) |
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_zlib.cmake) |
| 6 |
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_openssl.cmake) |
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_openssl.cmake) |
| 10 |
endif() |
endif() |
| 11 |
|
|
| 12 |
add_library( |
add_library( |
| 13 |
ttxssh SHARED |
${PACKAGE_NAME} SHARED |
| 14 |
) |
) |
| 15 |
|
|
| 16 |
target_sources( |
target_sources( |
| 17 |
ttxssh |
${PACKAGE_NAME} |
| 18 |
PRIVATE |
PRIVATE |
| 19 |
${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h |
${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h |
| 20 |
../matcher/matcher.c |
../matcher/matcher.c |
| 82 |
) |
) |
| 83 |
|
|
| 84 |
target_sources( |
target_sources( |
| 85 |
ttxssh |
${PACKAGE_NAME} |
| 86 |
PRIVATE |
PRIVATE |
| 87 |
../../teraterm/teraterm/WSAAsyncGetAddrInfo.c |
../../teraterm/teraterm/WSAAsyncGetAddrInfo.c |
| 88 |
../../teraterm/common/ttcommon.h |
../../teraterm/common/ttcommon.h |
| 103 |
REGULAR_EXPRESSION |
REGULAR_EXPRESSION |
| 104 |
"teraterm\/common\/") |
"teraterm\/common\/") |
| 105 |
|
|
| 106 |
|
if(SUPPORT_OLD_WINDOWS) |
| 107 |
|
if(MSVC) |
| 108 |
|
target_sources( |
| 109 |
|
${PACKAGE_NAME} |
| 110 |
|
PRIVATE |
| 111 |
|
../../teraterm/common/compat_w95_vs2005.c |
| 112 |
|
) |
| 113 |
|
endif() |
| 114 |
|
endif(SUPPORT_OLD_WINDOWS) |
| 115 |
|
|
| 116 |
target_include_directories( |
target_include_directories( |
| 117 |
ttxssh |
${PACKAGE_NAME} |
| 118 |
PRIVATE |
PRIVATE |
| 119 |
../../teraterm/teraterm |
../../teraterm/teraterm |
| 120 |
../../teraterm/common |
../../teraterm/common |
| 125 |
) |
) |
| 126 |
|
|
| 127 |
set_target_properties( |
set_target_properties( |
| 128 |
ttxssh |
${PACKAGE_NAME} |
| 129 |
PROPERTIES |
PROPERTIES |
| 130 |
PREFIX "" |
PREFIX "" |
| 131 |
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/" |
| 132 |
) |
) |
| 133 |
|
|
| 134 |
target_compile_definitions( |
target_compile_definitions( |
| 135 |
ttxssh |
${PACKAGE_NAME} |
| 136 |
PRIVATE |
PRIVATE |
| 137 |
$<$<CONFIG:Debug>:_CRTDBG_MAP_ALLOC> |
$<$<CONFIG:Debug>:_CRTDBG_MAP_ALLOC> |
| 138 |
) |
) |
| 139 |
|
|
| 140 |
|
if(MINGW) |
| 141 |
|
target_link_options( |
| 142 |
|
ttxssh |
| 143 |
|
PRIVATE |
| 144 |
|
-Wl,-Map=ttxssh.map,-cref |
| 145 |
|
) |
| 146 |
|
endif() |
| 147 |
|
|
| 148 |
target_link_libraries( |
target_link_libraries( |
| 149 |
ttxssh |
${PACKAGE_NAME} |
| 150 |
PRIVATE |
PRIVATE |
| 151 |
common_static |
common_static |
| 152 |
libputty |
libputty |
|
|
Legend:
| Removed from v.9126 |
|
| changed lines |
| |
Added in v.9129 |
|
|
|