Skip to content

Commit e1dc843

Browse files
committed
fix:1.12.1 解决CMake安装后的目前结构有错的问题
1 parent 0f245b1 commit e1dc843

File tree

4 files changed

+59
-50
lines changed

4 files changed

+59
-50
lines changed

modules/flow/CMakeLists.txt

+30-28
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,6 @@ add_definitions(-DMODULE_ID="tbox.flow")
2929

3030
set(TBOX_LIBRARY_NAME tbox_flow)
3131

32-
set(TBOX_FLOW_HEADERS
33-
state_machine.h
34-
action.h
35-
action_reason.h
36-
event.h
37-
action_executor.h
38-
event_subscriber.h
39-
event_publisher.h
40-
event_publisher_impl.h
41-
actions/assemble_action.h
42-
actions/function_action.h
43-
actions/sleep_action.h
44-
actions/sequence_action.h
45-
actions/parallel_action.h
46-
actions/if_else_action.h
47-
actions/if_then_action.h
48-
actions/loop_action.h
49-
actions/loop_if_action.h
50-
actions/event_action.h
51-
actions/repeat_action.h
52-
actions/composite_action.h
53-
actions/wrapper_action.h
54-
actions/succ_fail_action.h
55-
actions/dummy_action.h
56-
actions/switch_action.h
57-
to_graphviz.h)
58-
5932
set(TBOX_FLOW_SOURCES
6033
state_machine.cpp
6134
action.cpp
@@ -126,10 +99,39 @@ install(
12699

127100
# install header file
128101
install(
129-
FILES ${TBOX_FLOW_HEADERS}
102+
FILES
103+
state_machine.h
104+
action.h
105+
action_reason.h
106+
event.h
107+
action_executor.h
108+
event_subscriber.h
109+
event_publisher.h
110+
event_publisher_impl.h
111+
to_graphviz.h
130112
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tbox/flow
131113
)
132114

115+
install(
116+
FILES
117+
actions/assemble_action.h
118+
actions/function_action.h
119+
actions/sleep_action.h
120+
actions/sequence_action.h
121+
actions/parallel_action.h
122+
actions/if_else_action.h
123+
actions/if_then_action.h
124+
actions/loop_action.h
125+
actions/loop_if_action.h
126+
actions/event_action.h
127+
actions/repeat_action.h
128+
actions/composite_action.h
129+
actions/wrapper_action.h
130+
actions/succ_fail_action.h
131+
actions/dummy_action.h
132+
actions/switch_action.h
133+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tbox/flow/actions
134+
)
133135

134136
# generate and install export file
135137
install(

modules/http/CMakeLists.txt

+20-13
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ add_definitions(-DMODULE_ID="tbox.http")
2929

3030
set(TBOX_LIBRARY_NAME tbox_http)
3131

32-
set(TBOX_HTTP_HEADERS
33-
common.h
34-
request.h
35-
respond.h
36-
url.h
37-
server/types.h
38-
server/server.h
39-
server/context.h
40-
server/middleware.h
41-
server/router.h
42-
client/client.h)
43-
4432
set(TBOX_HTTP_SOURCES
4533
common.cpp
4634
request.cpp
@@ -87,10 +75,29 @@ install(
8775

8876
# install header file
8977
install(
90-
FILES ${TBOX_HTTP_HEADERS}
78+
FILES
79+
common.h
80+
request.h
81+
respond.h
82+
url.h
9183
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tbox/http
9284
)
9385

86+
install(
87+
FILES
88+
server/types.h
89+
server/server.h
90+
server/context.h
91+
server/middleware.h
92+
server/router.h
93+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tbox/http/server
94+
)
95+
96+
install(
97+
FILES
98+
client/client.h
99+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tbox/http/client
100+
)
94101

95102
# generate and install export file
96103
install(

modules/jsonrpc/CMakeLists.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ add_definitions(-DMODULE_ID="tbox.jsonrpc")
2727

2828
set(TBOX_LIBRARY_NAME tbox_jsonrpc)
2929

30-
set(TBOX_JSONRPC_HEADERS
31-
proto.h
32-
protos/raw_stream_proto.h
33-
protos/header_stream_proto.h
34-
protos/packet_proto.h
35-
rpc.h)
36-
3730
set(TBOX_JSONRPC_SOURCES
3831
proto.cpp
3932
protos/raw_stream_proto.cpp
@@ -76,10 +69,17 @@ install(
7669

7770
# install header file
7871
install(
79-
FILES ${TBOX_JSONRPC_HEADERS}
72+
FILES proto.h rpc.h
8073
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tbox/jsonrpc
8174
)
8275

76+
install(
77+
FILES
78+
protos/raw_stream_proto.h
79+
protos/header_stream_proto.h
80+
protos/packet_proto.h
81+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tbox/jsonrpc/protos
82+
)
8383

8484
# generate and install export file
8585
install(

version.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
# TBOX版本号
2222
TBOX_VERSION_MAJOR := 1
2323
TBOX_VERSION_MINOR := 12
24-
TBOX_VERSION_REVISION := 0
24+
TBOX_VERSION_REVISION := 1

0 commit comments

Comments
 (0)