Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9126 by zmatsuo, Sat Jan 16 05:20:30 2021 UTC revision 9129 by zmatsuo, Sat Jan 16 05:21:37 2021 UTC
# Line 1  Line 1 
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)
# Line 10  if (MSVC) Line 10  if (MSVC)
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
# Line 82  target_sources( Line 82  target_sources(
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
# Line 103  source_group( Line 103  source_group(
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
# Line 115  target_include_directories( Line 125  target_include_directories(
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

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