Développer et télécharger des logiciels Open Source

Browse Subversion Repository

Contents of /trunk/TTXSamples/TTXRecurringCommand/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10541 - (show annotations) (download)
Sat Jan 28 15:26:13 2023 UTC (16 months ago) by zmatsuo
File MIME type: text/plain
File size: 1390 byte(s)
cmakeビルド用 svnversion.h 移動修正

- svnversion.h 等を生成するスクリプト svnrev.cmake 追加
- svnversion.h は ビルドフォルダの teraterm/common/ に移動
  - 修正前はビルドフォルダの teraterm/ttpdlg だった
- cmake時 teraterm/common/ の include 指定を修正
  - common/CMakeLists.txt の target_include_directories(PUBLIC) を利用
  - 各々の CMakeLists.txt の common への include を削除した
1 set(PACKAGE_NAME "TTXRecurringCommand")
2
3 project(${PACKAGE_NAME})
4
5 add_library(
6 ${PACKAGE_NAME} SHARED
7 TTXRecurringCommand.c
8 TTXRecurringCommand.rc
9 ReadMe.txt
10 ReadMe-ja.txt
11 ../../teraterm/common/dlglib.h
12 )
13
14 if(SUPPORT_OLD_WINDOWS)
15 if(MSVC)
16 target_sources(
17 ${PACKAGE_NAME}
18 PRIVATE
19 ../../teraterm/common/compat_w95_vs2005.c
20 )
21 endif()
22 if(MINGW)
23 target_sources(
24 ${PACKAGE_NAME}
25 PRIVATE
26 ../../teraterm/libmingw/tlssup.c
27 )
28 target_link_libraries(
29 ${PACKAGE_NAME}
30 PRIVATE
31 -Wl,--whole-archive
32 mingw_msvcrt
33 -Wl,--no-whole-archive
34 )
35 endif()
36 endif(SUPPORT_OLD_WINDOWS)
37
38 source_group(
39 "common"
40 REGULAR_EXPRESSION
41 "teraterm\/common\/"
42 )
43
44 set_target_properties(
45 ${PACKAGE_NAME}
46 PROPERTIES
47 PREFIX ""
48 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/"
49 )
50
51 target_include_directories(
52 ${PACKAGE_NAME}
53 PRIVATE
54 ../../teraterm/teraterm
55 )
56
57 target_link_libraries(
58 ${PACKAGE_NAME}
59 PRIVATE
60 common_static
61 ttpcmn
62 )
63
64 if(SUPPORT_OLD_WINDOWS)
65 target_link_libraries(
66 ${PACKAGE_NAME}
67 PRIVATE
68 layer_for_unicode
69 )
70 endif(SUPPORT_OLD_WINDOWS)
71
72 target_link_libraries(
73 ${PACKAGE_NAME}
74 PRIVATE
75 gdi32
76 )
77
78 install(
79 TARGETS ${PACKAGE_NAME}
80 RUNTIME
81 DESTINATION .
82 )

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