1 |
set(PACKAGE_NAME "TTXProxy") |
2 |
|
3 |
project(${PACKAGE_NAME}) |
4 |
|
5 |
add_library( |
6 |
${PACKAGE_NAME} SHARED |
7 |
Hooker.h |
8 |
Logger.h |
9 |
ProxyWSockHook.h |
10 |
resource.h |
11 |
StdAfx.cpp |
12 |
StdAfx.h |
13 |
TTProxy.cpp |
14 |
TTProxy.h |
15 |
TTProxy.rc |
16 |
TTX.def |
17 |
) |
18 |
|
19 |
if(SUPPORT_OLD_WINDOWS) |
20 |
if(MSVC) |
21 |
target_sources( |
22 |
${PACKAGE_NAME} |
23 |
PRIVATE |
24 |
../../teraterm/common/compat_w95_vs2005.c |
25 |
) |
26 |
endif() |
27 |
if(MINGW) |
28 |
target_sources( |
29 |
${PACKAGE_NAME} |
30 |
PRIVATE |
31 |
../../teraterm/libmingw/tlssup.c |
32 |
) |
33 |
target_link_libraries( |
34 |
${PACKAGE_NAME} |
35 |
PRIVATE |
36 |
-Wl,--whole-archive |
37 |
mingw_msvcrt |
38 |
-Wl,--no-whole-archive |
39 |
) |
40 |
endif() |
41 |
endif(SUPPORT_OLD_WINDOWS) |
42 |
|
43 |
target_sources( |
44 |
${PACKAGE_NAME} |
45 |
PRIVATE |
46 |
../teraterm/common/ttlib.h |
47 |
../teraterm/common/i18n.h |
48 |
../teraterm/common/ttplugin.h |
49 |
../teraterm/common/tttypes.h |
50 |
../teraterm/common/tt-version.h |
51 |
../teraterm/common/codeconv.h |
52 |
../teraterm/common/dlglib.h |
53 |
../teraterm/teraterm/ttdialog.h |
54 |
../teraterm/teraterm/ttfileio.h |
55 |
../teraterm/teraterm/ttsetup.h |
56 |
../teraterm/teraterm/ttwsk.h |
57 |
) |
58 |
|
59 |
source_group( |
60 |
"common" |
61 |
REGULAR_EXPRESSION |
62 |
"teraterm\/common\/") |
63 |
|
64 |
target_sources( |
65 |
${PACKAGE_NAME} |
66 |
PRIVATE |
67 |
YCL/include/YCL/Array.h |
68 |
YCL/include/YCL/ComboBoxCtrl.h |
69 |
YCL/include/YCL/Dialog.h |
70 |
YCL/include/YCL/DynamicLinkLibrary.h |
71 |
YCL/include/YCL/EditBoxCtrl.h |
72 |
YCL/include/YCL/Enumeration.h |
73 |
YCL/include/YCL/FileVersion.h |
74 |
YCL/include/YCL/HASHCODE.h |
75 |
YCL/include/YCL/Hashtable.h |
76 |
YCL/include/YCL/IniFile.h |
77 |
YCL/include/YCL/Integer.h |
78 |
YCL/include/YCL/Object.h |
79 |
YCL/include/YCL/Pointer.h |
80 |
YCL/include/YCL/Resource.h |
81 |
YCL/include/YCL/String.h |
82 |
YCL/include/YCL/StringBuffer.h |
83 |
YCL/include/YCL/StringUtil.h |
84 |
YCL/include/YCL/ValueCtrl.h |
85 |
YCL/include/YCL/Vector.h |
86 |
YCL/include/YCL/WString.h |
87 |
YCL/include/YCL/WStringBuffer.h |
88 |
YCL/include/YCL/Window.h |
89 |
YCL/include/YCL/common.h |
90 |
) |
91 |
|
92 |
source_group( |
93 |
"YCL" |
94 |
REGULAR_EXPRESSION |
95 |
"YCL\/include\/") |
96 |
|
97 |
set_target_properties( |
98 |
${PACKAGE_NAME} |
99 |
PROPERTIES |
100 |
PREFIX "" |
101 |
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/" |
102 |
) |
103 |
|
104 |
target_include_directories( |
105 |
${PACKAGE_NAME} |
106 |
PRIVATE |
107 |
../teraterm/teraterm |
108 |
YCL/include |
109 |
. |
110 |
) |
111 |
|
112 |
target_link_libraries( |
113 |
${PACKAGE_NAME} |
114 |
PRIVATE |
115 |
common_static |
116 |
ttpcmn |
117 |
) |
118 |
|
119 |
if(SUPPORT_OLD_WINDOWS) |
120 |
target_link_libraries( |
121 |
${PACKAGE_NAME} |
122 |
PRIVATE |
123 |
layer_for_unicode |
124 |
) |
125 |
endif(SUPPORT_OLD_WINDOWS) |
126 |
|
127 |
target_link_libraries( |
128 |
${PACKAGE_NAME} |
129 |
PRIVATE |
130 |
ws2_32 |
131 |
version |
132 |
gdi32 |
133 |
comdlg32 |
134 |
) |
135 |
|
136 |
install( |
137 |
TARGETS ${PACKAGE_NAME} |
138 |
RUNTIME |
139 |
DESTINATION . |
140 |
) |