Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/teraterm/ttpcmn/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9547 - (show annotations) (download)
Sat Nov 27 13:49:15 2021 UTC (2 years, 4 months ago) by zmatsuo
File MIME type: text/plain
File size: 2224 byte(s)
セッションの複製が動作しなかったので修正

- セッション複製部分を別ファイルに分離
  - ttcmn_dup.cpp, h
- プロジェクトファイル修正
1 set(PACKAGE_NAME "ttpcmn")
2
3 project(${PACKAGE_NAME})
4
5 add_library(
6 ${PACKAGE_NAME}
7 SHARED
8 language.c
9 language.h
10 ttcmn.c
11 ttcmn_cominfo.c
12 ttcmn_cominfo.h
13 ttcmn_dup.cpp
14 ttcmn_dup.h
15 ttcmn_notify.cpp
16 ttpcmn-version.rc
17 ttpcmn.def
18 ${COMMON_SRC}
19 )
20
21 if(SUPPORT_OLD_WINDOWS)
22 if(MSVC)
23 if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
24 set(CMAKE_C_STANDARD_LIBRARIES "")
25 set(CMAKE_CXX_STANDARD_LIBRARIES "")
26 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB")
27 else()
28 target_link_options(
29 ${PACKAGE_NAME}
30 PRIVATE
31 /NODEFAULTLIB
32 )
33 endif()
34 target_sources(
35 ${PACKAGE_NAME}
36 PRIVATE
37 ../../teraterm/common/compat_w95_vs2005.c
38 )
39 endif()
40 if(MINGW)
41 target_sources(
42 ${PACKAGE_NAME}
43 PRIVATE
44 ../../teraterm/libmingw/tlssup.c
45 )
46 target_link_libraries(
47 ${PACKAGE_NAME}
48 PRIVATE
49 -Wl,--whole-archive
50 mingw_msvcrt
51 -Wl,--no-whole-archive
52 )
53 endif()
54 endif(SUPPORT_OLD_WINDOWS)
55
56 target_sources(
57 ${PACKAGE_NAME}
58 PRIVATE
59 ../common/teraterm.h
60 ../common/tttypes.h
61 ../common/i18n.h
62 ../common/i18n.c
63 ../common/ttlib.c
64 ../common/ttlib.h
65 ../common/servicenames.c
66 ../common/servicenames.h
67 ../common/tt-version.h
68 ../common/ttcommon.h
69 ../common/tt_res.h
70 ../common/codeconv.h
71 ../common/compat_win.h
72 ../common/dllutil.h
73 )
74
75 source_group(
76 "common"
77 REGULAR_EXPRESSION
78 "..\/common\/"
79 )
80
81 target_compile_definitions(
82 ttpcmn
83 PRIVATE -DTTPCMN_DLL
84 )
85
86 set_target_properties(
87 ${PACKAGE_NAME}
88 PROPERTIES
89 PREFIX ""
90 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/"
91 )
92
93 target_include_directories(
94 ${PACKAGE_NAME}
95 PRIVATE
96 ../common
97 ../ttpfile
98 .
99 )
100
101 target_link_libraries(
102 ${PACKAGE_NAME}
103 PRIVATE
104 common_static
105 )
106
107 if(SUPPORT_OLD_WINDOWS)
108 target_link_libraries(
109 ${PACKAGE_NAME}
110 PRIVATE
111 layer_for_unicode
112 )
113 endif()
114
115 target_link_libraries(
116 ${PACKAGE_NAME}
117 PRIVATE
118 ole32
119 setupapi
120 )
121
122 install(
123 TARGETS ${PACKAGE_NAME}
124 RUNTIME
125 DESTINATION .
126 )

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