forked from irods/irods
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
1788 lines (1695 loc) · 80.6 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
cmake_minimum_required(VERSION 3.12.0 FATAL_ERROR) # target_link_libraries for object targets
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_SOURCE_DIR}/cmake/Modules")
include(RequireOutOfSourceBuild)
option(IRODS_DISABLE_COMPILER_OPTIMIZATIONS "Disables compiler optimizations by setting -O0." OFF)
if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build {Debug, Release}." FORCE)
message(STATUS "Setting unspecified CMAKE_BUILD_TYPE to '${CMAKE_BUILD_TYPE}'. This is the correct setting for normal builds.")
endif()
include(IrodsExternals)
include(IrodsCXXCompiler)
macro(IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_DEVELOP_DEPENDENCIES_LIST DEPENDENCY_NAME DEPENDENCY_SUBDIRECTORY)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH(${DEPENDENCY_NAME} ${DEPENDENCY_SUBDIRECTORY})
list(APPEND IRODS_DEVELOP_DEPENDENCIES_LIST irods-externals-${DEPENDENCY_SUBDIRECTORY})
endmacro()
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_PACKAGE_DEPENDENCIES_LIST(ARCHIVE libarchive3.5.2-0)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_PACKAGE_DEPENDENCIES_LIST(AVRO avro1.11.0-0)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_PACKAGE_DEPENDENCIES_LIST(BOOST boost1.77.0-1)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_PACKAGE_DEPENDENCIES_LIST(FMT fmt8.0.1-0)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_PACKAGE_DEPENDENCIES_LIST(NANODBC nanodbc2.13.0-1)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_PACKAGE_DEPENDENCIES_LIST(ZMQ zeromq4-14.1.8-0)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_DEVELOP_DEPENDENCIES_LIST(CATCH2 catch22.13.7-1)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_DEVELOP_DEPENDENCIES_LIST(CPPZMQ cppzmq4.8.1-1)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_DEVELOP_DEPENDENCIES_LIST(JSON json3.10.4-0)
IRODS_MACRO_CHECK_DEPENDENCY_SET_FULLPATH_ADD_TO_IRODS_DEVELOP_DEPENDENCIES_LIST(SPDLOG spdlog1.9.2-1)
string(REPLACE ";" ", " IRODS_PACKAGE_DEPENDENCIES_STRING "${IRODS_PACKAGE_DEPENDENCIES_LIST}")
string(REPLACE ";" ", " IRODS_DEVELOP_DEPENDENCIES_STRING "${IRODS_DEVELOP_DEPENDENCIES_LIST}")
set(CMAKE_CXX_STANDARD 17)
set(IRODS_CXX_STANDARD "${CMAKE_CXX_STANDARD}")
# export-dynamic so stacktrace entries from executables have function names
set(CMAKE_EXE_LINKER_FLAGS_INIT "-Wl,--export-dynamic -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,defs")
set(CMAKE_MODULE_LINKER_FLAGS_INIT "-Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,defs")
set(CMAKE_SHARED_LINKER_FLAGS_INIT "-Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,defs")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT "-Wl,--gc-sections -Wl,-z,combreloc")
set(CMAKE_MODULE_LINKER_FLAGS_RELEASE_INIT "-Wl,--gc-sections -Wl,-z,combreloc")
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT "-Wl,--gc-sections -Wl,-z,combreloc")
set(IRODS_VERSION_MAJOR "4")
set(IRODS_VERSION_MINOR "3")
set(IRODS_VERSION_PATCH "0")
set(IRODS_VERSION "${IRODS_VERSION_MAJOR}.${IRODS_VERSION_MINOR}.${IRODS_VERSION_PATCH}")
set(IRODS_PACKAGE_REVISION "1")
project(irods
VERSION ${IRODS_VERSION}
LANGUAGES C CXX)
if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
set(IRODS_BUILD_WITH_WERROR_DEFAULT ON)
else()
set(IRODS_BUILD_WITH_WERROR_DEFAULT OFF)
endif()
set(IRODS_BUILD_WITH_WERROR ${IRODS_BUILD_WITH_WERROR_DEFAULT} CACHE BOOL "Choose whether to compile with -Werror.")
if (IRODS_BUILD_WITH_WERROR)
add_compile_options(-Werror)
endif()
include(UseLibCXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
include(${CMAKE_SOURCE_DIR}/cmake/InstallDirs.cmake)
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_SKIP_INSTALL_RPATH FALSE)
set(CMAKE_SKIP_RPATH FALSE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
if (IRODS_DISABLE_COMPILER_OPTIMIZATIONS)
add_compile_options(-O0)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fpermissive>)
endif()
add_compile_options(-Wall -Wextra -Wno-unused-function -Wno-unused-parameter)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-Wno-parentheses)
endif()
if (IRODS_BUILD_WITH_WERROR)
if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9)
# Do not error on definition of implicit copy constructor for classes with a
# user-declared copy assignment operator.
# This is needed because the boost headers throw this warning.
add_compile_options(-Wno-error=deprecated-copy)
# Do not error when overlapping comparisons always evaluate to false.
# This is needed because the boost headers throw this warning.
add_compile_options(-Wno-error=tautological-overlap-compare)
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-Wno-error=unused-variable)
add_compile_options(-Wno-error=unused-but-set-variable)
endif()
endif()
find_package(nlohmann_json "3.6.1" REQUIRED)
include_directories(${IRODS_EXTERNALS_FULLPATH_SPDLOG}/include)
if (NOT DEFINED THREADS_PREFER_PTHREAD_FLAG)
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
endif()
find_package(Threads REQUIRED)
find_package(CURL REQUIRED)
find_package(OpenSSL REQUIRED)
if (NOT PAM_LIBRARY)
find_library(PAM_LIBRARY pam)
if (PAM_LIBRARY)
message(STATUS "Found pam: ${PAM_LIBRARY}")
else()
message(FATAL_ERROR "pam library not found")
endif()
endif()
set(IRODS_PLATFORM_STRING linux_platform)
set(IRODS_COMPILE_DEFINITIONS ${IRODS_COMPILE_DEFINITIONS}
${IRODS_PLATFORM_STRING}
_LARGEFILE_SOURCE
_FILE_OFFSET_BITS=64
_LARGE_FILES
_LARGEFILE64_SOURCE
BOOST_SYSTEM_NO_DEPRECATED
SPDLOG_FMT_EXTERNAL
SPDLOG_NO_TLS)
if (NOT IRODS_LINUX_DISTRIBUTION_NAME)
execute_process(
COMMAND "python3" "-c" "from __future__ import print_function; import distro; print(distro.id(), end='')"
RESULT_VARIABLE IRODS_EXECUTE_PROCESS_RESULT_LINUX_DISTRIBUTION_NAME
OUTPUT_VARIABLE IRODS_LINUX_DISTRIBUTION_NAME
)
if (NOT ${IRODS_EXECUTE_PROCESS_RESULT_LINUX_DISTRIBUTION_NAME} STREQUAL "0")
message(FATAL_ERROR "Linux platform name detection failed\n${IRODS_EXECUTE_PROCESS_RESULT_LINUX_DISTRIBUTION_NAME}")
endif()
set(IRODS_LINUX_DISTRIBUTION_NAME ${IRODS_LINUX_DISTRIBUTION_NAME} CACHE STRING "Linux distribution name, e.g. {ubuntu, centos, ...}." FORCE)
message(STATUS "Setting unspecified IRODS_LINUX_DISTRIBUTION_NAME to '${IRODS_LINUX_DISTRIBUTION_NAME}'")
endif()
if (NOT IRODS_LINUX_DISTRIBUTION_VERSION_MAJOR)
execute_process(
COMMAND "python3" "-c" "from __future__ import print_function; import distro; print(distro.major_version(), end='')"
RESULT_VARIABLE IRODS_EXECUTE_PROCESS_RESULT_LINUX_DISTRIBUTION_VERSION_MAJOR
OUTPUT_VARIABLE IRODS_LINUX_DISTRIBUTION_VERSION_MAJOR
)
if (NOT ${IRODS_EXECUTE_PROCESS_RESULT_LINUX_DISTRIBUTION_VERSION_MAJOR} STREQUAL "0")
message(FATAL_ERROR "Linux platform name detection failed\n${IRODS_EXECUTE_PROCESS_RESULT_LINUX_DISTRIBUTION_VERSION_MAJOR}")
endif()
set(IRODS_LINUX_DISTRIBUTION_VERSION_MAJOR ${IRODS_LINUX_DISTRIBUTION_VERSION_MAJOR} CACHE STRING "Linux distribution name, e.g. {ubuntu, centos, ...}." FORCE)
message(STATUS "Setting unspecified IRODS_LINUX_DISTRIBUTION_VERSION_MAJOR to '${IRODS_LINUX_DISTRIBUTION_VERSION_MAJOR}'")
endif()
if(IRODS_LINUX_DISTRIBUTION_NAME STREQUAL "ubuntu" OR IRODS_LINUX_DISTRIBUTION_NAME STREQUAL "debian")
if (NOT IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME)
execute_process(
COMMAND "lsb_release" "-s" "-c"
RESULT_VARIABLE IRODS_EXECUTE_PROCESS_RESULT_LINUX_DISTRIBUTION_VERSION_CODENAME
OUTPUT_VARIABLE IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME
)
string(STRIP ${IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME} IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME)
if (NOT ${IRODS_EXECUTE_PROCESS_RESULT_LINUX_DISTRIBUTION_VERSION_CODENAME} STREQUAL "0")
message(FATAL_ERROR "Linux lsb_release shortname detection failed\n${IRODS_EXECUTE_PROCESS_RESULT_LINUX_DISTRIBUTION_VERSION_CODENAME}")
endif()
set(IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME ${IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME} CACHE STRING "Linux distribution version codename, e.g. {precise, wheezy, trusty, jessie, ...}." FORCE)
message(STATUS "Setting unspecified IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME to '${IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME}'")
endif()
endif()
if (NOT CPACK_GENERATOR)
if (IRODS_LINUX_DISTRIBUTION_NAME STREQUAL "arch")
set(CPACK_GENERATOR TGZ CACHE STRING "CPack generator to use, e.g. {DEB, RPM, TGZ}." FORCE)
message(STATUS "Setting unspecified CPACK_GENERATOR to ${CPACK_GENERATOR}. This is the correct setting for normal builds.")
elseif(IRODS_LINUX_DISTRIBUTION_NAME STREQUAL "ubuntu" OR IRODS_LINUX_DISTRIBUTION_NAME STREQUAL "debian")
set(CPACK_GENERATOR DEB CACHE STRING "CPack generator to use, e.g. {DEB, RPM, TGZ}." FORCE)
message(STATUS "Setting unspecified CPACK_GENERATOR to ${CPACK_GENERATOR}. This is the correct setting for normal builds.")
else()
set(IRODS_SUPPORTED_RPM_BASED_LINUX_DISTRIBUTION_NAMES "centos" "opensuse" "fedora" "almalinux" "rocky")
if(IRODS_LINUX_DISTRIBUTION_NAME IN_LIST IRODS_SUPPORTED_RPM_BASED_LINUX_DISTRIBUTION_NAMES)
set(CPACK_GENERATOR RPM CACHE STRING "CPack generator to use, e.g. {DEB, RPM, TGZ}." FORCE)
message(STATUS "Setting unspecified CPACK_GENERATOR to ${CPACK_GENERATOR}. This is the correct setting for normal builds.")
else()
message(FATAL_ERROR "Failed to set CPACK_GENERATOR for unknown Linux Distribution: ${IRODS_LINUX_DISTRIBUTION_NAME}")
endif()
endif()
endif()
set(IRODS_CPACK_GENERATOR ${CPACK_GENERATOR})
set(CPACK_PACKAGE_FILE_NAME "irods")
if (CPACK_GENERATOR STREQUAL "DEB")
# CPACK_DEBIAN_PACKAGE_VERSION was previously a cache variable. Evict it.
unset(CPACK_DEBIAN_PACKAGE_VERSION CACHE)
set(CPACK_DEBIAN_PACKAGE_VERSION "${IRODS_VERSION}")
set(CPACK_DEBIAN_PACKAGE_RELEASE "${IRODS_PACKAGE_REVISION}")
if (IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME)
set(CPACK_DEBIAN_PACKAGE_RELEASE "${CPACK_DEBIAN_PACKAGE_RELEASE}~${IRODS_LINUX_DISTRIBUTION_VERSION_CODENAME}")
endif()
elseif (CPACK_GENERATOR STREQUAL "RPM")
set(CPACK_RPM_PACKAGE_VERSION "${IRODS_VERSION}")
set(CPACK_RPM_PACKAGE_RELEASE "${IRODS_PACKAGE_REVISION}")
endif()
# CPACK names component package files as "${CPACK_PACKAGE_FILE_NAME}-${COMPONENT_NAME}"
# CPackDeb TO_UPPERs all the component names when checking the ${CPACK_DEBIAN_<COMPONENT>...} variables
set(IRODS_PACKAGE_COMPONENT_SERVER_NAME "server")
string(TOUPPER ${IRODS_PACKAGE_COMPONENT_SERVER_NAME} IRODS_PACKAGE_COMPONENT_SERVER_NAME_UPPERCASE)
if (CPACK_GENERATOR STREQUAL "RPM")
set(IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME "devel")
string(TOUPPER ${IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME} IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME_UPPERCASE)
elseif(CPACK_GENERATOR STREQUAL "DEB")
set(IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME "dev")
string(TOUPPER ${IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME} IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME_UPPERCASE)
else()
set(IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME "dev")
string(TOUPPER ${IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME} IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME_UPPERCASE)
endif()
string(TOUPPER ${IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME} IRODS_PACKAGE_COMPONENT_DEVELOPMENT_NAME_UPPERCASE)
set(IRODS_PACKAGE_COMPONENT_RUNTIME_NAME "runtime")
string(TOUPPER ${IRODS_PACKAGE_COMPONENT_RUNTIME_NAME} IRODS_PACKAGE_COMPONENT_RUNTIME_NAME_UPPERCASE)
set(IRODS_PACKAGE_COMPONENT_POSTGRES_NAME "database-plugin-postgres")
string(TOUPPER ${IRODS_PACKAGE_COMPONENT_POSTGRES_NAME} IRODS_PACKAGE_COMPONENT_POSTGRES_NAME_UPPERCASE)
set(IRODS_PACKAGE_COMPONENT_MYSQL_NAME "database-plugin-mysql")
string(TOUPPER ${IRODS_PACKAGE_COMPONENT_MYSQL_NAME} IRODS_PACKAGE_COMPONENT_MYSQL_NAME_UPPERCASE)
set(IRODS_PACKAGE_COMPONENT_ORACLE_NAME "database-plugin-oracle")
string(TOUPPER ${IRODS_PACKAGE_COMPONENT_ORACLE_NAME} IRODS_PACKAGE_COMPONENT_ORACLE_NAME_UPPERCASE)
if (NOT EXISTS "${CMAKE_SOURCE_DIR}/irods_schema_messaging/v1/server_control_plane_command.json")
message(FATAL_ERROR "Missing file: ${CMAKE_SOURCE_DIR}/irods_schema_messaging/v1/server_control_plane_command.json
Are your git submodules initialized? If not, try running the following in the source directory:
git submodule update --init")
endif()
add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/lib/core/include/server_control_plane_command.hpp
COMMAND LD_LIBRARY_PATH=${IRODS_EXTERNALS_FULLPATH_BOOST}/lib ${IRODS_EXTERNALS_FULLPATH_AVRO}/bin/avrogencpp -n irods -o ${CMAKE_BINARY_DIR}/lib/core/include/server_control_plane_command.hpp -i ${CMAKE_SOURCE_DIR}/irods_schema_messaging/v1/server_control_plane_command.json
MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/irods_schema_messaging/v1/server_control_plane_command.json
)
set_source_files_properties(
${CMAKE_SOURCE_DIR}/server/core/src/irods_server_control_plane.cpp
PROPERTIES
OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/lib/core/include/server_control_plane_command.hpp
)
configure_file(
${CMAKE_SOURCE_DIR}/lib/core/include/irods_default_paths.hpp.in
${CMAKE_BINARY_DIR}/lib/core/include/irods_default_paths.hpp
@ONLY
)
configure_file(
${CMAKE_SOURCE_DIR}/lib/core/include/rodsVersion.h.in
${CMAKE_BINARY_DIR}/lib/core/include/rodsVersion.h
@ONLY
)
configure_file(
${CMAKE_SOURCE_DIR}/lib/core/include/irods_version.h.in
${CMAKE_BINARY_DIR}/lib/core/include/irods_version.h
@ONLY
)
include(GetGitRevisionDescription)
get_git_head_revision(IRODS_GIT_REFSPEC IRODS_GIT_SHA1)
configure_file(
${CMAKE_SOURCE_DIR}/VERSION.json.dist.in
${CMAKE_BINARY_DIR}/VERSION.json.dist
@ONLY
)
add_library(
irods_filesystem_path
OBJECT
${CMAKE_SOURCE_DIR}/lib/filesystem/src/path.cpp
)
target_include_directories(
irods_filesystem_path
PRIVATE
${CMAKE_SOURCE_DIR}/lib/filesystem/include
${CMAKE_SOURCE_DIR}/lib/core/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
)
target_compile_options(irods_filesystem_path PRIVATE -fPIC -Wno-write-strings)
target_compile_definitions(irods_filesystem_path PRIVATE ${IRODS_COMPILE_DEFINITIONS})
add_library(
irods_filesystem_client
OBJECT
${CMAKE_SOURCE_DIR}/lib/filesystem/src/filesystem.cpp
${CMAKE_SOURCE_DIR}/lib/filesystem/src/collection_iterator.cpp
${CMAKE_SOURCE_DIR}/lib/filesystem/src/recursive_collection_iterator.cpp
)
target_link_libraries(
irods_filesystem_client
PUBLIC
nlohmann_json::nlohmann_json
)
target_include_directories(
irods_filesystem_client
PRIVATE
${CMAKE_BINARY_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/api/include
${CMAKE_SOURCE_DIR}/lib/hasher/include
${CMAKE_SOURCE_DIR}/lib/rbudp/include
${CMAKE_SOURCE_DIR}/lib/filesystem/include
${CMAKE_SOURCE_DIR}/server/core/include
${CMAKE_SOURCE_DIR}/server/icat/include
${CMAKE_SOURCE_DIR}/server/re/include
${CMAKE_SOURCE_DIR}/server/drivers/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
${IRODS_EXTERNALS_FULLPATH_FMT}/include
${OPENSSL_INCLUDE_DIR}
)
target_compile_options(irods_filesystem_client PRIVATE -fPIC -Wno-write-strings)
target_compile_definitions(irods_filesystem_client PRIVATE ${IRODS_COMPILE_DEFINITIONS})
add_library(
irods_filesystem_server
OBJECT
${CMAKE_SOURCE_DIR}/lib/filesystem/src/filesystem.cpp
${CMAKE_SOURCE_DIR}/lib/filesystem/src/collection_iterator.cpp
${CMAKE_SOURCE_DIR}/lib/filesystem/src/recursive_collection_iterator.cpp
)
target_link_libraries(
irods_filesystem_server
PUBLIC
nlohmann_json::nlohmann_json
)
target_include_directories(
irods_filesystem_server
PRIVATE
${CMAKE_BINARY_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/api/include
${CMAKE_SOURCE_DIR}/lib/hasher/include
${CMAKE_SOURCE_DIR}/lib/rbudp/include
${CMAKE_SOURCE_DIR}/lib/filesystem/include
${CMAKE_SOURCE_DIR}/server/core/include
${CMAKE_SOURCE_DIR}/server/api/include
${CMAKE_SOURCE_DIR}/server/icat/include
${CMAKE_SOURCE_DIR}/server/re/include
${CMAKE_SOURCE_DIR}/server/drivers/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
${IRODS_EXTERNALS_FULLPATH_FMT}/include
${OPENSSL_INCLUDE_DIR}
)
target_compile_options(irods_filesystem_server PRIVATE -fPIC -Wno-write-strings)
target_compile_definitions(irods_filesystem_server PRIVATE ${IRODS_COMPILE_DEFINITIONS} IRODS_FILESYSTEM_ENABLE_SERVER_SIDE_API IRODS_TRANSPORT_ENABLE_SERVER_SIDE_API)
add_library(
irods_user_administration_client
OBJECT
${CMAKE_SOURCE_DIR}/lib/core/src/user_administration.cpp
)
target_link_libraries(
irods_user_administration_client
PUBLIC
nlohmann_json::nlohmann_json
)
target_include_directories(
irods_user_administration_client
PRIVATE
${CMAKE_BINARY_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/api/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
${IRODS_EXTERNALS_FULLPATH_FMT}/include
)
target_compile_options(irods_user_administration_client PRIVATE -fPIC -Wno-write-strings)
target_compile_definitions(irods_user_administration_client PRIVATE ${IRODS_COMPILE_DEFINITIONS})
add_library(
irods_user_administration_server
OBJECT
${CMAKE_SOURCE_DIR}/lib/core/src/user_administration.cpp
)
target_link_libraries(
irods_user_administration_server
PUBLIC
nlohmann_json::nlohmann_json
)
target_include_directories(
irods_user_administration_server
PRIVATE
${CMAKE_BINARY_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/api/include
${CMAKE_SOURCE_DIR}/server/core/include
${CMAKE_SOURCE_DIR}/server/api/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
${IRODS_EXTERNALS_FULLPATH_FMT}/include
)
target_compile_options(irods_user_administration_server PRIVATE -fPIC -Wno-write-strings)
target_compile_definitions(irods_user_administration_server PRIVATE ${IRODS_COMPILE_DEFINITIONS} IRODS_USER_ADMINISTRATION_ENABLE_SERVER_SIDE_API)
add_library(
irods_resource_administration_client
OBJECT
${CMAKE_SOURCE_DIR}/lib/core/src/resource_administration.cpp
)
target_link_libraries(
irods_resource_administration_client
PUBLIC
nlohmann_json::nlohmann_json
)
target_include_directories(
irods_resource_administration_client
PRIVATE
${CMAKE_BINARY_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/api/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
${IRODS_EXTERNALS_FULLPATH_FMT}/include
)
target_compile_options(irods_resource_administration_client PRIVATE -fPIC -Wno-write-strings)
target_compile_definitions(irods_resource_administration_client PRIVATE ${IRODS_COMPILE_DEFINITIONS})
add_library(
irods_resource_administration_server
OBJECT
${CMAKE_SOURCE_DIR}/lib/core/src/resource_administration.cpp
)
target_link_libraries(
irods_resource_administration_server
PUBLIC
nlohmann_json::nlohmann_json
)
target_include_directories(
irods_resource_administration_server
PRIVATE
${CMAKE_BINARY_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/api/include
${CMAKE_SOURCE_DIR}/server/core/include
${CMAKE_SOURCE_DIR}/server/api/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
${IRODS_EXTERNALS_FULLPATH_FMT}/include
)
target_compile_options(irods_resource_administration_server PRIVATE -fPIC -Wno-write-strings)
target_compile_definitions(irods_resource_administration_server PRIVATE ${IRODS_COMPILE_DEFINITIONS} IRODS_RESOURCE_ADMINISTRATION_ENABLE_SERVER_SIDE_API)
# This list of source files exist because they must be compiled multiple times.
# Once for the irods_client target and again for the irods_server target. The reason
# for this is due to the use of macros such as ENABLE_RE and the irods::plugin_base class
# being shared between client-side and server-side code.
set(
IRODS_LIBIRODS_CLIENT_API_SOURCES
${CMAKE_SOURCE_DIR}/lib/api/src/rcAuthCheck.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcAuthPluginRequest.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcAuthRequest.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcAuthResponse.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcBulkDataObjPut.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcBulkDataObjReg.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcChkNVPathPerm.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcChkObjPermAndStat.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcClientHints.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcCloseCollection.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcCollCreate.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcCollRepl.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataCopy.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataGet.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjChksum.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjClose.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjCopy.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjCreate.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjCreateAndStat.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjGet.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjLock.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjLseek.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjOpen.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjOpenAndStat.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjPhymv.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjPut.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjRead.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjRename.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjRepl.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjRsync.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjTrim.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjTruncate.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjUnlink.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataObjWrite.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcDataPut.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcEndTransaction.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcExecCmd.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcExecMyRule.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcExecRuleExpression.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileChksum.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileChmod.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileClose.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileClosedir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileCreate.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileGet.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileGetFsFreeSpace.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileLseek.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileMkdir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileOpen.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileOpendir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFilePut.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileRead.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileReaddir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileRename.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileRmdir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileStageToCache.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileStat.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileSyncToArch.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileTruncate.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileUnlink.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcFileWrite.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGenQuery.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGeneralAdmin.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGeneralRowInsert.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGeneralRowPurge.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGeneralUpdate.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetHierFromLeafId.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetHierarchyForResc.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetHostForGet.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetHostForPut.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetLimitedPassword.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetMiscSvrInfo.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetRemoteZoneResc.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetRescQuota.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetTempPassword.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcGetTempPasswordForOther.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcIESClientHints.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcL3FileGetSingleBuf.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcL3FilePutSingleBuf.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcModAVUMetadata.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcModAccessControl.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcModColl.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcModDataObjMeta.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcObjStat.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcOpenCollection.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcOprComplete.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcPamAuthRequest.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcPhyBundleColl.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcPhyPathReg.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcProcStat.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcQuerySpecColl.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcReadCollection.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcRegColl.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcRegDataObj.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcRegReplica.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcRmColl.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcRuleExecDel.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcRuleExecMod.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcRuleExecSubmit.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcServerReport.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSimpleQuery.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSpecificQuery.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSslEnd.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSslStart.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcStreamClose.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcStreamRead.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcStructFileBundle.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcStructFileExtAndReg.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcStructFileExtract.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcStructFileSync.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileClose.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileClosedir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileCreate.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileGet.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileLseek.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileMkdir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileOpen.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileOpendir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFilePut.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileRead.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileReaddir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileRename.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileRmdir.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileStat.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileTruncate.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileUnlink.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSubStructFileWrite.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcSyncMountedColl.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcTicketAdmin.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcUnbunAndRegPhyBunfile.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcUnregDataObj.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcUserAdmin.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rcZoneReport.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rc_atomic_apply_acl_operations.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rc_atomic_apply_metadata_operations.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rc_data_object_finalize.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rc_data_object_modify_info.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rc_get_file_descriptor_info.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rc_register_physical_path.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rc_replica_close.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rc_replica_open.cpp
${CMAKE_SOURCE_DIR}/lib/api/src/rc_touch.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/bunUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/chksumUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/clientLogin.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/client_connection.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/connection_pool.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/cpUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/fsckUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/getUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/group.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/irods_c_api.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/irods_client_api_table.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/irods_client_negotiation.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/lsUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/mcollUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/miscUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/mkdirUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/mvUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/phybunUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/phymvUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/procApiRequest.cpp # relies on RODS_SERVER/CLERVER
${CMAKE_SOURCE_DIR}/lib/core/src/putUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/rcConnect.cpp # relies on RODS_CLERVER
${CMAKE_SOURCE_DIR}/lib/core/src/rcPortalOpr.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/regUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/replUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/rmUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/rmdirUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/rmtrashUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/rsyncUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/scanUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/sockComm.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/sslSockComm.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/trimUtil.cpp
${CMAKE_SOURCE_DIR}/lib/core/src/user.cpp
)
add_library(
# This object file exists to avoid recompiling the API functions multiple
# times. It is used by the irods_client and RodsAPIs target. These libraries
# use the same build arguments.
irods_client_api_functions
OBJECT
${IRODS_LIBIRODS_CLIENT_API_SOURCES}
)
target_link_libraries(
irods_client_api_functions
PUBLIC
nlohmann_json::nlohmann_json
)
target_include_directories(
irods_client_api_functions
PRIVATE
${CMAKE_BINARY_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/api/include
${CMAKE_SOURCE_DIR}/lib/hasher/include
${CMAKE_SOURCE_DIR}/lib/rbudp/include
${CMAKE_SOURCE_DIR}/lib/filesystem/include
${CMAKE_SOURCE_DIR}/plugins/api/include
${CMAKE_SOURCE_DIR}/server/core/include
${CMAKE_SOURCE_DIR}/server/icat/include
${CMAKE_SOURCE_DIR}/server/re/include
${CMAKE_SOURCE_DIR}/server/drivers/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
${IRODS_EXTERNALS_FULLPATH_FMT}/include
)
target_compile_options(irods_client_api_functions PRIVATE -fPIC -Wno-write-strings)
target_compile_definitions(irods_client_api_functions PRIVATE ${IRODS_COMPILE_DEFINITIONS})
set(
IRODS_LIBIRODS_CLIENT_SOURCES
$<TARGET_OBJECTS:irods_client_api_functions>
$<TARGET_OBJECTS:irods_filesystem_path>
$<TARGET_OBJECTS:irods_filesystem_client>
$<TARGET_OBJECTS:irods_user_administration_client>
$<TARGET_OBJECTS:irods_resource_administration_client>
)
add_library(
irods_client
SHARED
${IRODS_LIBIRODS_CLIENT_SOURCES}
)
target_link_libraries(
irods_client
PRIVATE
irods_plugin_dependencies
irods_common
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_chrono.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_filesystem.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_regex.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_system.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_thread.so
${IRODS_EXTERNALS_FULLPATH_FMT}/lib/libfmt.so
${OPENSSL_SSL_LIBRARY}
${OPENSSL_CRYPTO_LIBRARY}
Threads::Threads
)
target_include_directories(
irods_client
PRIVATE
${CMAKE_BINARY_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/api/include
${CMAKE_SOURCE_DIR}/lib/hasher/include
${CMAKE_SOURCE_DIR}/lib/rbudp/include
${CMAKE_SOURCE_DIR}/lib/filesystem/include
${CMAKE_SOURCE_DIR}/plugins/api/include
${CMAKE_SOURCE_DIR}/server/core/include
${CMAKE_SOURCE_DIR}/server/icat/include
${CMAKE_SOURCE_DIR}/server/re/include
${CMAKE_SOURCE_DIR}/server/drivers/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
${IRODS_EXTERNALS_FULLPATH_FMT}/include
${OPENSSL_INCLUDE_DIR}
)
set_property(TARGET irods_client PROPERTY VERSION ${IRODS_VERSION})
set_property(TARGET irods_client PROPERTY SOVERSION ${IRODS_VERSION})
target_compile_options(irods_client PRIVATE -Wno-write-strings)
target_compile_definitions(irods_client PRIVATE ${IRODS_COMPILE_DEFINITIONS})
set(
IRODS_LIBIRODS_SERVER_SOURCES
${CMAKE_SOURCE_DIR}/server/api/src/rs_atomic_apply_acl_operations.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rs_atomic_apply_metadata_operations.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rs_data_object_finalize.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rs_get_file_descriptor_info.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rs_register_physical_path.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rs_replica_close.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rs_replica_open.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rs_touch.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsAuthCheck.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsAuthPluginRequest.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsAuthRequest.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsAuthResponse.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsBulkDataObjPut.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsBulkDataObjReg.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsChkNVPathPerm.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsChkObjPermAndStat.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsClientHints.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsCloseCollection.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsCollCreate.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsCollRepl.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataCopy.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataGet.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjChksum.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjClose.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjCopy.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjCreate.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjCreateAndStat.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjGet.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjLock.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjLseek.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjOpen.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjOpenAndStat.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjPhymv.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjPut.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjRead.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjRename.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjRepl.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjRsync.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjTrim.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjTruncate.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjUnlink.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataObjWrite.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsDataPut.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsEndTransaction.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsExecCmd.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsExecMyRule.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsExecRuleExpression.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileChksum.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileChmod.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileClose.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileClosedir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileCreate.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileGet.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileGetFsFreeSpace.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileLseek.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileMkdir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileOpen.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileOpendir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFilePut.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileRead.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileReaddir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileRename.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileRmdir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileStageToCache.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileStat.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileSyncToArch.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileTruncate.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileUnlink.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsFileWrite.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGenQuery.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGeneralAdmin.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGeneralRowInsert.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGeneralRowPurge.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGeneralUpdate.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetHierFromLeafId.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetHierarchyForResc.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetHostForGet.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetHostForPut.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetLimitedPassword.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetMiscSvrInfo.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetRemoteZoneResc.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetRescQuota.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetTempPassword.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsGetTempPasswordForOther.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsIESClientHints.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsL3FileGetSingleBuf.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsL3FilePutSingleBuf.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsModAVUMetadata.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsModAccessControl.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsModColl.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsModDataObjMeta.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsObjStat.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsOpenCollection.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsOprComplete.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsPamAuthRequest.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsPhyBundleColl.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsPhyPathReg.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsProcStat.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsQuerySpecColl.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsReadCollection.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsRegColl.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsRegDataObj.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsRegReplica.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsRmColl.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsRuleExecDel.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsRuleExecMod.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsRuleExecSubmit.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsServerReport.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSimpleQuery.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSpecificQuery.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSslEnd.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSslStart.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsStreamClose.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsStreamRead.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsStructFileBundle.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsStructFileExtAndReg.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsStructFileExtract.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsStructFileSync.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileClose.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileClosedir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileCreate.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileGet.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileLseek.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileMkdir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileOpen.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileOpendir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFilePut.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileRead.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileReaddir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileRename.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileRmdir.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileStat.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileTruncate.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileUnlink.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSubStructFileWrite.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsSyncMountedColl.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsTicketAdmin.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsUnbunAndRegPhyBunfile.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsUnregDataObj.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsUserAdmin.cpp
${CMAKE_SOURCE_DIR}/server/api/src/rsZoneReport.cpp
${CMAKE_SOURCE_DIR}/server/core/src/administration_utilities.cpp
${CMAKE_SOURCE_DIR}/server/core/src/atomic_apply_database_operations.cpp
${CMAKE_SOURCE_DIR}/server/core/src/client_api_whitelist.cpp
${CMAKE_SOURCE_DIR}/server/core/src/catalog.cpp
${CMAKE_SOURCE_DIR}/server/core/src/catalog_utilities.cpp
${CMAKE_SOURCE_DIR}/server/core/src/collection.cpp
${CMAKE_SOURCE_DIR}/server/core/src/dataObjOpr.cpp
${CMAKE_SOURCE_DIR}/server/core/src/replica_access_table.cpp
${CMAKE_SOURCE_DIR}/server/core/src/replica_state_table.cpp
${CMAKE_SOURCE_DIR}/server/core/src/fileOpr.cpp
${CMAKE_SOURCE_DIR}/server/core/src/finalize_utilities.cpp
${CMAKE_SOURCE_DIR}/server/core/src/initServer.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_api_calling_functions.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_api_number_validator.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_collection_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_data_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_database_factory.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_database_manager.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_database_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_database_plugin.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_file_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_get_l1desc.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_report_plugins_in_json.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_mysql_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_oracle_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_physical_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_postgres_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_generic_database_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_resource_backport.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_resource_constants.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_resource_manager.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_resource_plugin.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_resource_plugin_impostor.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_resource_redirect.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_rs_comm_query.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_server_api_table.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_server_globals.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_server_negotiation.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_server_state.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_signal.cpp
${CMAKE_SOURCE_DIR}/server/core/src/irods_structured_object.cpp
${CMAKE_SOURCE_DIR}/server/core/src/json_deserialization.cpp
${CMAKE_SOURCE_DIR}/server/core/src/json_serialization.cpp
${CMAKE_SOURCE_DIR}/server/core/src/logical_locking.cpp
${CMAKE_SOURCE_DIR}/server/core/src/miscServerFunct.cpp
${CMAKE_SOURCE_DIR}/server/core/src/objDesc.cpp
${CMAKE_SOURCE_DIR}/server/core/src/objMetaOpr.cpp
${CMAKE_SOURCE_DIR}/server/core/src/physPath.cpp
${CMAKE_SOURCE_DIR}/server/core/src/plugin_lifetime_manager.cpp
${CMAKE_SOURCE_DIR}/server/core/src/procLog.cpp
${CMAKE_SOURCE_DIR}/server/core/src/replication_utilities.cpp
${CMAKE_SOURCE_DIR}/server/core/src/rodsAgent.cpp
${CMAKE_SOURCE_DIR}/server/core/src/rodsConnect.cpp
${CMAKE_SOURCE_DIR}/server/core/src/rsApiHandler.cpp
${CMAKE_SOURCE_DIR}/server/core/src/rsIcatOpr.cpp
${CMAKE_SOURCE_DIR}/server/core/src/rsLog.cpp
${CMAKE_SOURCE_DIR}/server/core/src/server_utilities.cpp
${CMAKE_SOURCE_DIR}/server/core/src/specColl.cpp
${CMAKE_SOURCE_DIR}/server/core/src/user_validation_utilities.cpp
${CMAKE_SOURCE_DIR}/server/core/src/voting.cpp
${CMAKE_SOURCE_DIR}/server/drivers/src/fileDriver.cpp
${CMAKE_SOURCE_DIR}/server/icat/src/icatHighLevelRoutines.cpp
${CMAKE_SOURCE_DIR}/server/re/src/extractAvuMS.cpp
${CMAKE_SOURCE_DIR}/server/re/src/genQueryMS.cpp
${CMAKE_SOURCE_DIR}/server/re/src/icatAdminMS.cpp
${CMAKE_SOURCE_DIR}/server/re/src/icatGeneralMS.cpp
${CMAKE_SOURCE_DIR}/server/re/src/irods_ms_plugin.cpp
${CMAKE_SOURCE_DIR}/server/re/src/irods_re_plugin.cpp
${CMAKE_SOURCE_DIR}/server/re/src/irods_re_structs.cpp
${CMAKE_SOURCE_DIR}/server/re/src/reAction.cpp
${CMAKE_SOURCE_DIR}/server/re/src/nre.systemMS.cpp
${CMAKE_SOURCE_DIR}/server/re/src/irods_re_namespaceshelper.cpp
${CMAKE_SOURCE_DIR}/server/re/src/irods_re_ruleexistshelper.cpp
${CMAKE_SOURCE_DIR}/server/re/src/irods_re_serialization.cpp
${CMAKE_SOURCE_DIR}/server/re/src/keyValPairMS.cpp
${CMAKE_SOURCE_DIR}/server/re/src/locks.cpp
${CMAKE_SOURCE_DIR}/server/re/src/mailMS.cpp
${CMAKE_SOURCE_DIR}/server/re/src/miscMS.cpp
${CMAKE_SOURCE_DIR}/server/re/src/printMS.cpp
${CMAKE_SOURCE_DIR}/server/re/src/reDataObjOpr.cpp
${CMAKE_SOURCE_DIR}/server/re/src/reIn2p3SysRule.cpp
${CMAKE_SOURCE_DIR}/server/re/src/reNaraMetaData.cpp
${CMAKE_SOURCE_DIR}/server/re/src/reStruct.cpp
${CMAKE_SOURCE_DIR}/server/re/src/reSysDataObjOpr.cpp
${CMAKE_SOURCE_DIR}/server/re/src/sharedmemory.cpp
${CMAKE_SOURCE_DIR}/server/re/src/testMS.cpp
$<TARGET_OBJECTS:irods_filesystem_server>
$<TARGET_OBJECTS:irods_user_administration_server>
$<TARGET_OBJECTS:irods_resource_administration_server>
)
add_library(
irods_server
SHARED
${IRODS_LIBIRODS_SERVER_SOURCES}
# The client-side APIs must be recompiled due to macros like ENABLE_RE.
# This allows the PEPs to fire when operations are invoked via irods::plugin_base::call.
${IRODS_LIBIRODS_CLIENT_API_SOURCES}
$<TARGET_OBJECTS:irods_filesystem_path>
$<TARGET_OBJECTS:irods_filesystem_client>
$<TARGET_OBJECTS:irods_user_administration_client>
$<TARGET_OBJECTS:irods_resource_administration_client>
)
target_link_libraries(
irods_server
PUBLIC
nlohmann_json::nlohmann_json
PRIVATE
irods_common
irods_plugin_dependencies
${IRODS_EXTERNALS_FULLPATH_AVRO}/lib/libavrocpp.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_chrono.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_filesystem.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_thread.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_regex.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_system.so
${IRODS_EXTERNALS_FULLPATH_FMT}/lib/libfmt.so
${IRODS_EXTERNALS_FULLPATH_NANODBC}/lib/libnanodbc.so
${IRODS_EXTERNALS_FULLPATH_ZMQ}/lib/libzmq.so
${OPENSSL_SSL_LIBRARY}
${OPENSSL_CRYPTO_LIBRARY}
${CMAKE_DL_LIBS}
rt
${CURL_LIBRARIES}
Threads::Threads
)
target_include_directories(
irods_server
PRIVATE
${CURL_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/api/include
${CMAKE_SOURCE_DIR}/lib/core/include
${CMAKE_SOURCE_DIR}/lib/hasher/include
${CMAKE_SOURCE_DIR}/lib/rbudp/include
${CMAKE_SOURCE_DIR}/lib/filesystem/include