File tree 28 files changed +173
-114
lines changed
28 files changed +173
-114
lines changed Original file line number Diff line number Diff line change @@ -91,61 +91,3 @@ add_subdirectory(www)
91
91
add_subdirectory (xrdlog)
92
92
add_subdirectory (xrdreq)
93
93
add_subdirectory (xrdsvc)
94
-
95
- #-----------------------------------------------------------------------------
96
-
97
- add_library (qserv_common SHARED)
98
-
99
- target_link_libraries (qserv_common PUBLIC
100
- global
101
- memman
102
- proto
103
- mysql
104
- sql
105
- util
106
- )
107
-
108
- install (
109
- TARGETS qserv_common
110
- )
111
-
112
- #-----------------------------------------------------------------------------
113
-
114
- add_library (xrdsvc SHARED)
115
-
116
- target_link_libraries (xrdsvc PUBLIC
117
- wbase
118
- wcontrol
119
- wconfig
120
- wdb
121
- wpublish
122
- wsched
123
- qserv_xrdsvc
124
- qserv_common
125
- )
126
-
127
- install (
128
- TARGETS xrdsvc
129
- )
130
-
131
- #-----------------------------------------------------------------------------
132
-
133
- add_library (qserv_czar SHARED)
134
-
135
- target_link_libraries (qserv_czar PUBLIC
136
- ccontrol
137
- czar
138
- parser
139
- qana
140
- query
141
- qdisp
142
- qproc
143
- rproc
144
- qserv_css
145
- qserv_meta
146
- xrdreq
147
- )
148
-
149
- install (
150
- TARGETS qserv_czar
151
- )
Original file line number Diff line number Diff line change 1
- add_library (cconfig OBJECT )
1
+ add_library (cconfig SHARED )
2
2
3
3
target_sources (cconfig PRIVATE
4
4
CzarConfig.cc
@@ -12,3 +12,7 @@ target_link_libraries(cconfig PUBLIC
12
12
log
13
13
XrdSsiLib
14
14
)
15
+
16
+ install (
17
+ TARGETS cconfig
18
+ )
Original file line number Diff line number Diff line change 1
- add_library (ccontrol OBJECT )
1
+ add_library (ccontrol SHARED )
2
2
add_dependencies (ccontrol proto)
3
3
4
4
target_include_directories (ccontrol PRIVATE
@@ -37,6 +37,10 @@ target_link_libraries(ccontrol PUBLIC
37
37
XrdCl
38
38
)
39
39
40
+ install (
41
+ TARGETS ccontrol
42
+ )
43
+
40
44
FUNCTION (ccontrol_tests)
41
45
FOREACH (TEST IN ITEMS ${ARGV} )
42
46
add_executable (${TEST} ${TEST} .cc)
@@ -48,8 +52,8 @@ FUNCTION(ccontrol_tests)
48
52
qana
49
53
qdisp
50
54
qproc
51
- qserv_css
52
- qserv_meta
55
+ css
56
+ qmeta
53
57
query
54
58
rproc
55
59
xrdreq
Original file line number Diff line number Diff line change 1
- add_library (qserv_css SHARED)
1
+ add_library (css SHARED)
2
2
3
- target_sources (qserv_css PRIVATE
3
+ target_sources (css PRIVATE
4
4
CssAccess.cc
5
5
CssConfig.cc
6
6
DbInterfaceMySql.cc
@@ -9,19 +9,21 @@ target_sources(qserv_css PRIVATE
9
9
KvInterfaceImplMySql.cc
10
10
)
11
11
12
- target_link_libraries (qserv_css PUBLIC
13
- qserv_common
12
+ target_link_libraries (css PUBLIC
13
+ mysql
14
+ sql
14
15
log
16
+ util
15
17
)
16
18
17
- install (TARGETS qserv_css )
19
+ install (TARGETS css )
18
20
install (DIRECTORY schema/ DESTINATION ${CMAKE_INSTALL_PREFIX} /qserv/smig/css/schema/)
19
21
20
22
FUNCTION (css_tests)
21
23
FOREACH (TEST IN ITEMS ${ARGV} )
22
24
add_executable (${TEST} ${TEST} .cc)
23
25
target_link_libraries (${TEST} PUBLIC
24
- qserv_css
26
+ css
25
27
Boost::unit_test_framework
26
28
)
27
29
add_test (NAME ${TEST} COMMAND ${TEST} )
Original file line number Diff line number Diff line change 1
- add_library (czar OBJECT )
1
+ add_library (czar SHARED )
2
2
3
3
target_sources (czar PRIVATE
4
4
ChttpModule.cc
@@ -31,6 +31,10 @@ target_link_libraries(czar PUBLIC
31
31
boost_program_options
32
32
)
33
33
34
+ install (
35
+ TARGETS czar
36
+ )
37
+
34
38
function (CZAR_UTILS)
35
39
foreach (UTIL IN ITEMS ${ARGV} )
36
40
add_executable (${UTIL} )
@@ -46,7 +50,7 @@ function(CZAR_UTILS)
46
50
qana
47
51
qdisp
48
52
qproc
49
- qserv_meta
53
+ qmeta
50
54
query
51
55
rproc
52
56
sql
Original file line number Diff line number Diff line change 1
- add_library (global OBJECT )
1
+ add_library (global SHARED )
2
2
3
3
target_sources (global PRIVATE
4
4
DbTable.cc
@@ -12,6 +12,10 @@ target_link_libraries(global PUBLIC
12
12
log
13
13
)
14
14
15
+ install (
16
+ TARGETS global
17
+ )
18
+
15
19
add_executable (testResourceUnit testResourceUnit.cc)
16
20
17
21
target_link_libraries (testResourceUnit
Original file line number Diff line number Diff line change 1
- add_library (memman OBJECT )
1
+ add_library (memman SHARED )
2
2
3
3
target_sources (memman PRIVATE
4
4
MemFile.cc
@@ -11,3 +11,7 @@ target_sources(memman PRIVATE
11
11
target_link_libraries (memman PUBLIC
12
12
log
13
13
)
14
+
15
+ install (
16
+ TARGETS memman
17
+ )
Original file line number Diff line number Diff line change 1
- add_library (mysql OBJECT )
1
+ add_library (mysql SHARED )
2
2
add_dependencies (mysql proto)
3
3
4
4
target_sources (mysql PRIVATE
@@ -15,6 +15,10 @@ target_link_libraries(mysql PUBLIC
15
15
mysqlclient_r
16
16
)
17
17
18
+ install (
19
+ TARGETS mysql
20
+ )
21
+
18
22
add_executable (testLocalInfile testLocalInfile.cc)
19
23
20
24
target_link_libraries (testLocalInfile
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ antlr_target(QSMySqlParser QSMySqlParser.g4 PARSER LISTENER
8
8
COMPILE_FLAGS -lib ${CMAKE_CURRENT_BINARY_DIR}
9
9
)
10
10
11
- add_library (parser OBJECT )
11
+ add_library (parser SHARED )
12
12
13
13
target_include_directories (parser PRIVATE
14
14
${ANTLR4_INCLUDE_DIR}
@@ -28,3 +28,7 @@ target_link_libraries(parser PUBLIC
28
28
log
29
29
antlr4-runtime
30
30
)
31
+
32
+ install (
33
+ TARGETS parser
34
+ )
Original file line number Diff line number Diff line change 1
- add_library (proto OBJECT )
1
+ add_library (proto SHARED )
2
2
3
3
target_compile_options (proto PRIVATE
4
4
-Wno-maybe-uninitialized
@@ -19,6 +19,10 @@ target_link_libraries(proto PUBLIC
19
19
protobuf
20
20
)
21
21
22
+ install (
23
+ TARGETS proto
24
+ )
25
+
22
26
add_executable (testProtocol testProtocol.cc)
23
27
24
28
target_link_libraries (testProtocol
Original file line number Diff line number Diff line change @@ -16,8 +16,18 @@ target_include_directories(czarProxy PRIVATE
16
16
target_link_libraries (czarProxy PRIVATE
17
17
log
18
18
lua-5.1
19
- qserv_czar
20
- )
19
+ cconfig
20
+ ccontrol
21
+ czar
22
+ parser
23
+ qana
24
+ query
25
+ qdisp
26
+ qproc
27
+ rproc
28
+ css
29
+ qmeta
30
+ xrdreq)
21
31
22
32
install (TARGETS czarProxy DESTINATION ${CMAKE_INSTALL_PREFIX} /lua/qserv/lib)
23
33
install (FILES mysqlProxy.lua DESTINATION ${CMAKE_INSTALL_PREFIX} /lua/qserv/scripts)
Original file line number Diff line number Diff line change 1
- add_library (qana OBJECT )
1
+ add_library (qana SHARED )
2
2
add_dependencies (qana proto)
3
3
4
4
target_sources (qana PRIVATE
@@ -21,6 +21,10 @@ target_link_libraries(qana PUBLIC
21
21
log
22
22
)
23
23
24
+ install (
25
+ TARGETS qana
26
+ )
27
+
24
28
FUNCTION (qana_tests)
25
29
FOREACH (TEST IN ITEMS ${ARGV} )
26
30
add_executable (${TEST} ${TEST} .cc)
@@ -33,8 +37,8 @@ FUNCTION(qana_tests)
33
37
qdisp
34
38
qproc
35
39
query
36
- qserv_css
37
- qserv_meta
40
+ css
41
+ qmeta
38
42
rproc
39
43
xrdreq
40
44
Boost::unit_test_framework
Original file line number Diff line number Diff line change 1
- add_library (qdisp OBJECT )
1
+ add_library (qdisp SHARED )
2
2
add_dependencies (qdisp proto)
3
3
4
4
target_sources (qdisp PRIVATE
@@ -24,6 +24,10 @@ target_link_libraries(qdisp PUBLIC
24
24
XrdSsiLib
25
25
)
26
26
27
+ install (
28
+ TARGETS qdisp
29
+ )
30
+
27
31
add_executable (testQDisp testQDisp.cc)
28
32
29
33
target_include_directories (testQDisp PRIVATE
@@ -38,8 +42,8 @@ target_link_libraries(testQDisp
38
42
qana
39
43
qdisp
40
44
qproc
41
- qserv_css
42
- qserv_meta
45
+ css
46
+ qmeta
43
47
query
44
48
rproc
45
49
xrdreq
Original file line number Diff line number Diff line change 1
- add_library (qserv_meta SHARED)
1
+ add_library (qmeta SHARED)
2
2
3
- target_sources (qserv_meta PRIVATE
3
+ target_sources (qmeta PRIVATE
4
4
QMeta.cc
5
5
QMetaMysql.cc
6
6
QMetaSelect.cc
7
7
QMetaTransaction.cc
8
8
QStatusMysql.cc
9
9
)
10
10
11
- target_link_libraries (qserv_meta PUBLIC
11
+ target_link_libraries (qmeta PUBLIC
12
12
cconfig
13
+ global
14
+ mysql
13
15
qdisp
14
- qserv_common
15
16
log
16
- mysqlclient_r
17
+ util
17
18
)
18
19
19
- install (TARGETS qserv_meta )
20
+ install (TARGETS qmeta )
20
21
install (DIRECTORY schema/ DESTINATION ${CMAKE_INSTALL_PREFIX} /qserv/smig/qmeta/schema/)
21
22
22
23
add_executable (testQMeta testQMeta.cc)
23
24
24
25
target_link_libraries (testQMeta
25
26
cconfig
26
- qserv_meta
27
+ proto
28
+ qmeta
29
+ sql
27
30
Boost::unit_test_framework
28
31
Threads::Threads
29
32
)
Original file line number Diff line number Diff line change 1
- add_library (qproc OBJECT )
1
+ add_library (qproc SHARED )
2
2
add_dependencies (qproc proto)
3
3
4
4
target_sources (qproc PRIVATE
@@ -17,6 +17,10 @@ target_link_libraries(qproc PRIVATE
17
17
sphgeom
18
18
)
19
19
20
+ install (
21
+ TARGETS qproc
22
+ )
23
+
20
24
FUNCTION (qproc_tests)
21
25
FOREACH (TEST IN ITEMS ${ARGV} )
22
26
add_executable (${TEST} ${TEST} .cc ../tests/QueryAnaHelper.cc)
@@ -29,8 +33,8 @@ FUNCTION(qproc_tests)
29
33
qdisp
30
34
qproc
31
35
query
32
- qserv_css
33
- qserv_meta
36
+ css
37
+ qmeta
34
38
rproc
35
39
xrdreq
36
40
Boost::unit_test_framework
You can’t perform that action at this time.
0 commit comments