-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
1001 lines (921 loc) · 38 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 2.8.12)
# NOTE: Qore should always use semantic versioning: https://semver.org/
set(VERSION_MAJOR 2)
set(VERSION_MINOR 0)
set(VERSION_SUB 0)
#set(VERSION_PATCH 0)
# set policy for interperting unquoted variables
if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
# support <pkg>_ROOT in find_package
if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()
# enable RPATH in macos bins (OS requires this in any case)
if (POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif()
project(qore-language)
option(ICONV_TRANSLIT
"Force //Translit to iconv encoding to do transliteration, if OFF it is tested for"
OFF)
STRING(LENGTH ${VERSION_MINOR} MINOR_LEN)
if (${MINOR_LEN} EQUAL 1)
set(VERSION_FORMATTED_MINOR 0${VERSION_MINOR})
else()
set(VERSION_FORMATTED_MINOR ${VERSION_MINOR})
endif()
STRING(LENGTH ${VERSION_SUB} SUB_LEN)
if (${SUB_LEN} EQUAL 1)
set(VERSION_FORMATTED_SUB 0${VERSION_SUB})
else()
set(VERSION_FORMATTED_SUB ${VERSION_SUB})
endif()
if(DEFINED VERSION_PATCH)
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SUB}.${VERSION_PATCH})
else()
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SUB})
set(VERSION_PATCH 0)
endif()
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "release")
endif (NOT CMAKE_BUILD_TYPE)
string(TOLOWER ${CMAKE_BUILD_TYPE} QORE_BUILD_TYPE_LWR)
if (${QORE_BUILD_TYPE_LWR} MATCHES "debug")
add_definitions(-DDEBUG)
else ()
add_definitions(-DNDEBUG)
endif ()
include_directories(BEFORE ${CMAKE_SOURCE_DIR}/include)
include_directories(BEFORE ${CMAKE_BINARY_DIR}/include/)
include_directories(BEFORE ${CMAKE_BINARY_DIR})
# for add the source dir include for cmake runs that refuse to add it in some environments for an unknown reason
set(CMAKE_CXX_FLAGS "-I${CMAKE_SOURCE_DIR}/include")
find_package(Java)
if (DEFINED ENV{DOXYGEN_EXECUTABLE})
set(DOXYGEN_EXECUTABLE $ENV{DOXYGEN_EXECUTABLE})
endif()
# simulate QoreConfig
set(QORE_QDX_EXECUTABLE "${CMAKE_SOURCE_DIR}/doxygen/qdx")
set(QORE_QJAR_EXECUTABLE "${CMAKE_SOURCE_DIR}/doxygen/qjar")
# simulate QoreConfig
include("${CMAKE_SOURCE_DIR}/cmake/QoreMacros.cmake")
include("${CMAKE_SOURCE_DIR}/cmake/QoreMacrosIntern.cmake")
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
include(CheckIncludeFiles)
include(GNUInstallDirs)
# issue #2994: ensure that the arch-specific libdir is used on Debian/Ubuntu
check_libdir_arch()
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set(myprefix ${CMAKE_INSTALL_PREFIX})
set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR})
set(libdir ${CMAKE_INSTALL_FULL_LIBDIR})
if (WIN32 OR MSYS OR MINGW)
set(MODULE_DIR lib/qore-modules)
set(MODULE_VER_DIR ${MODULE_DIR}/${VERSION})
set(USER_MODULE_DIR share/qore-modules)
set(USER_MODULE_VER_DIR ${USER_MODULE_DIR}/${VERSION})
add_definitions(-DMODULES_RELATIVE_PATH)
else (WIN32 OR MSYS or MINGW)
set(MODULE_DIR ${CMAKE_INSTALL_FULL_LIBDIR}/qore-modules)
set(MODULE_VER_DIR ${MODULE_DIR}/${VERSION})
set(USER_MODULE_DIR ${CMAKE_INSTALL_FULL_DATADIR}/qore-modules/)
set(USER_MODULE_VER_DIR ${USER_MODULE_DIR}${VERSION})
endif (WIN32 OR MSYS OR MINGW)
get_module_api_versions()
set(LIBQORE_QPP_SRC
lib/QC_AbstractSmartLock.qpp
lib/QC_AbstractThreadResource.qpp
lib/QC_AutoGate.qpp
lib/QC_AutoLock.qpp
lib/QC_AutoReadLock.qpp
lib/QC_AutoWriteLock.qpp
lib/QC_Condition.qpp
lib/QC_Counter.qpp
lib/QC_AbstractIterator.qpp
lib/QC_AbstractQuantifiedIterator.qpp
lib/QC_AbstractBidirectionalIterator.qpp
lib/QC_AbstractQuantifiedBidirectionalIterator.qpp
lib/QC_ListIterator.qpp
lib/QC_ListReverseIterator.qpp
lib/QC_HashIterator.qpp
lib/QC_HashReverseIterator.qpp
lib/QC_HashKeyIterator.qpp
lib/QC_HashKeyReverseIterator.qpp
lib/QC_HashPairIterator.qpp
lib/QC_HashPairReverseIterator.qpp
lib/QC_ObjectIterator.qpp
lib/QC_ObjectReverseIterator.qpp
lib/QC_ObjectKeyIterator.qpp
lib/QC_ObjectKeyReverseIterator.qpp
lib/QC_ObjectPairIterator.qpp
lib/QC_ObjectPairReverseIterator.qpp
lib/QC_HashListIterator.qpp
lib/QC_HashListReverseIterator.qpp
lib/QC_ListHashIterator.qpp
lib/QC_ListHashReverseIterator.qpp
lib/QC_AbstractLineIterator.qpp
lib/QC_FileLineIterator.qpp
lib/QC_DataLineIterator.qpp
lib/QC_InputStreamLineIterator.qpp
lib/QC_SingleValueIterator.qpp
lib/QC_AbstractDatasource.qpp
lib/QC_AbstractSQLStatement.qpp
lib/QC_RangeIterator.qpp
lib/QC_Datasource.qpp
lib/QC_DatasourcePool.qpp
lib/QC_Dir.qpp
lib/QC_ReadOnlyFile.qpp
lib/QC_File.qpp
lib/QC_FtpClient.qpp
lib/QC_Gate.qpp
lib/QC_GetOpt.qpp
lib/QC_HTTPClient.qpp
lib/QC_Mutex.qpp
lib/QC_Program.qpp
lib/QC_ProgramControl.qpp
lib/QC_DebugProgram.qpp
lib/QC_Breakpoint.qpp
lib/QC_Expression.qpp
lib/QC_Queue.qpp
lib/QC_RWLock.qpp
lib/QC_SQLStatement.qpp
lib/QC_Sequence.qpp
lib/QC_Socket.qpp
lib/QC_TermIOS.qpp
lib/QC_TimeZone.qpp
lib/QC_TreeMap.qpp
lib/QC_SSLCertificate.qpp
lib/QC_SSLPrivateKey.qpp
lib/QC_ThreadPool.qpp
lib/QC_StreamBase.qpp
lib/QC_InputStream.qpp
lib/QC_BinaryInputStream.qpp
lib/QC_StringInputStream.qpp
lib/QC_FileInputStream.qpp
lib/QC_EncodingConversionInputStream.qpp
lib/QC_OutputStream.qpp
lib/QC_BinaryOutputStream.qpp
lib/QC_StringOutputStream.qpp
lib/QC_FileOutputStream.qpp
lib/QC_EncodingConversionOutputStream.qpp
lib/QC_StreamPipe.qpp
lib/QC_PipeInputStream.qpp
lib/QC_PipeOutputStream.qpp
lib/QC_StreamWriter.qpp
lib/QC_StreamReader.qpp
lib/QC_BufferedStreamReader.qpp
lib/QC_Transform.qpp
lib/QC_TransformInputStream.qpp
lib/QC_TransformOutputStream.qpp
lib/QC_StdoutOutputStream.qpp
lib/QC_StderrOutputStream.qpp
lib/QC_Serializable.qpp
lib/QC_AbstractPollableIoObject.qpp
lib/QC_AbstractPollableIoObjectBase.qpp
lib/QC_AbstractPollOperation.qpp
lib/QC_SocketPollOperationBase.qpp
lib/QC_SocketPollOperation.qpp
lib/QC_FilePollOperation.qpp
lib/ql_misc.qpp
lib/ql_compression.qpp
lib/ql_thread.qpp
lib/ql_crypto.qpp
lib/ql_lib.qpp
lib/ql_file.qpp
lib/ql_string.qpp
lib/ql_time.qpp
lib/ql_math.qpp
lib/ql_list.qpp
lib/ql_type.qpp
lib/ql_pwd.qpp
lib/ql_object.qpp
lib/ql_env.qpp
lib/ql_dbi.qpp
lib/ql_context.qpp
lib/qc_option.qpp
lib/qc_errno.qpp
lib/qc_qore.qpp
)
set(PSEUDO_QPP_SRC
lib/Pseudo_QC_All.qpp
lib/Pseudo_QC_Nothing.qpp
lib/Pseudo_QC_Date.qpp
lib/Pseudo_QC_Object.qpp
lib/Pseudo_QC_Hash.qpp
lib/Pseudo_QC_String.qpp
lib/Pseudo_QC_Binary.qpp
lib/Pseudo_QC_List.qpp
lib/Pseudo_QC_Bool.qpp
lib/Pseudo_QC_Int.qpp
lib/Pseudo_QC_Float.qpp
lib/Pseudo_QC_Number.qpp
lib/Pseudo_QC_Closure.qpp
lib/Pseudo_QC_Callref.qpp
)
set(QORE_BIN_FILES
doxygen/qdx
doxygen/qjar
bin/qdp
bin/qget
bin/rest
bin/schema-reverse
bin/sfrest
bin/saprest
bin/sqlutil
bin/qdbg
bin/qdbg-server
bin/qdbg-remote
bin/qdbg-vsc-adapter
)
set(QORE_DOX_TMPL_SRC
doxygen/lang/mainpage.dox.tmpl
doxygen/lang/000_intro.dox.tmpl
doxygen/lang/105_desc_overview.dox.tmpl
doxygen/lang/110_environment_variables.dox.tmpl
doxygen/lang/115_conditional_parsing.dox.tmpl
doxygen/lang/120_modules.dox.tmpl
doxygen/lang/125_include_files.dox.tmpl
doxygen/lang/130_identifiers.dox.tmpl
doxygen/lang/135_comments.dox.tmpl
doxygen/lang/140_variables.dox.tmpl
doxygen/lang/145_basic_data_types.dox.tmpl
doxygen/lang/150_container_data_types.dox.tmpl
doxygen/lang/152_code_data_types.dox.tmpl
doxygen/lang/155_data_type_declarations.dox.tmpl
doxygen/lang/157_lvalue_references.dox.tmpl
doxygen/lang/160_overloading.dox.tmpl
doxygen/lang/165_time_zones.dox.tmpl
doxygen/lang/170_character_encoding.dox.tmpl
doxygen/lang/175_expressions.dox.tmpl
doxygen/lang/180_operators.dox.tmpl
doxygen/lang/185_qore_regex.dox.tmpl
doxygen/lang/190_date_time_arithmetic.dox.tmpl
doxygen/lang/195_statements.dox.tmpl
doxygen/lang/200_functions.dox.tmpl
doxygen/lang/202_code_flags.dox.tmpl
doxygen/lang/205_namespaces.dox.tmpl
doxygen/lang/210_constants.dox.tmpl
doxygen/lang/215_classes.dox.tmpl
doxygen/lang/217_hashdecl.dox.tmpl
doxygen/lang/220_threading.dox.tmpl
doxygen/lang/225_exception_handling.dox.tmpl
doxygen/lang/230_signal_handling.dox.tmpl
doxygen/lang/235_event_handling.dox.tmpl
doxygen/lang/240_command_line_processing.dox.tmpl
doxygen/lang/245_parse_directives.dox.tmpl
doxygen/lang/250_warnings.dox.tmpl
doxygen/lang/255_keywords.dox.tmpl
doxygen/lang/900_release_notes.dox.tmpl
doxygen/lang/Doxyfile.tmpl
)
# qore interpreter
set(QORE_CPP_SRC command-line.cpp qore-main.cpp)
#set(QR_CPP_SRC command-line.cpp qr-main.cpp)
# find needed libraries
qore_find_pthreads()
find_package(ICONV REQUIRED)
find_package(BISON REQUIRED)
find_package(FLEX 2.5.35 REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
find_package(MPFR REQUIRED)
find_package(BZip2 REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(PCRE REQUIRED libpcre)
if (NOT (WIN32 OR MINGW OR MSYS))
find_package(Backtrace)
if (Backtrace_FOUND)
list(APPEND LIBQORE_OPTIONAL_INCLUDES ${Backtrace_INCLUDE_DIRS})
list(APPEND LIBQORE_OPTIONAL_LIBS ${Backtrace_LIBRARIES})
endif (Backtrace_FOUND)
endif (NOT (WIN32 OR MINGW OR MSYS))
if (WIN32 OR MINGW OR MSYS)
SET(CMAKE_DL_LIBS dl)
SET(MPFR_LIBRARIES mpfr gmp)
SET(OPENSSL_LIBRARIES ssl crypto)
SET(WINSOCKET_LIBRARIES ws2_32)
SET(NO_SIGNAL_HANDLING ON)
endif (WIN32 OR MINGW OR MSYS)
create_git_revision()
# check for C++17
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)
if(COMPILER_SUPPORTS_CXX17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
set(HAVE_CXX17 true)
else()
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++17 support. Please use a different C++ compiler.")
endif()
# in case we want to the jni module, we need to link with libjsig if available
find_package(JNI)
if (JNI_FOUND AND DEFINED JAVA_JVM_LIBRARY AND NOT DEFINED ENV{QORE_WITHOUT_JSIG})
get_filename_component(JAVA_LIB_DIR ${JAVA_JVM_LIBRARY} DIRECTORY)
set(LIBJSIG "${JAVA_LIB_DIR}/libjsig${CMAKE_SHARED_LIBRARY_SUFFIX}")
endif()
# check if we need libatomic
check_cxx_atomic()
# other checks
qore_os_checks()
qore_iconv_translit_check()
qore_openssl_checks()
qore_mpfr_checks()
qore_check_headers_cxx(arpa/inet.h cxxabi.h dlfcn.h fcntl.h getopt.h glob.h grp.h iconv.h inttypes.h linux/if_packet.h memory.h netdb.h
netinet/in.h netinet/tcp.h poll.h pwd.h stdbool.h stddef.h stdint.h stdlib.h string.h strings.h sys/select.h
sys/socket.h sys/socket.h sys/stat.h sys/statvfs.h sys/time.h sys/types.h sys/un.h sys/wait.h termios.h umem.h
unistd.h vfork.h winsock2.h ws2tcpip.h openssl/engine.h
)
# net/if_dl.h is not self-contained
include(CheckIncludeFiles)
check_include_files("sys/types.h;sys/socket.h;net/if_dl.h" HAVE_NET_IF_DL_H)
qore_search_libs(LIBQORE_LIBS setsockopt socket)
qore_search_libs(LIBQORE_LIBS gethostbyname nsl)
qore_search_libs(LIBQORE_LIBS clock_gettime rt)
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${LIBQORE_LIBS})
qore_check_funcs(
access alarm atoll bzero chown clock_gettime doprnt exp2 floor fork fsync getaddrinfo getegid geteuid
getgid getgrgid_r getgrnam_r getgroups gethostbyaddr gethostbyname gethostname getifaddrs getnameinfo getppid
getpwnam_r getpwuid_r getrlimit getsockopt gettimeofday getuid glob gmtime_r inet_ntop inet_pton isblank kill lchown
localtime_r link_ntoa lstat memmem memmove memset mkfifo mkfifo nanosleep poll
pthread_attr_getstacksize
pthread_get_name_np pthread_get_stacksize_np pthread_getname_np putenv random
readlink realloc realpath regcomp round select setegid setegid setenv
seteuid seteuid setgid setgroups setsid setsockopt setuid setuid sleep socket
strcasecmp strcasestr strchr strdup strerror strncasecmp strspn strstr
strtoll strtol symlink system tbbmalloc timegm unsetenv usleep vfork vprintf
)
qore_func_strerror_r()
qore_gethost_checks()
qore_find_pthread_setname_np()
qore_find_pthread_getattr_np()
unset(CMAKE_REQUIRED_LIBRARIES)
qore_other_checks()
qore_dlcpp_check()
qore_stl_hash_map(include/qore/hash_map_include.h)
qore_stl_slist(include/qore/slist_include.h)
qore_cpu_checks()
qore_assembler_files()
# issue #2897 make build reproducible by omitting the hostname if possible
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
execute_process(COMMAND uname -smpo OUTPUT_VARIABLE QORE_BUILD_HOST OUTPUT_STRIP_TRAILING_WHITESPACE)
elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
execute_process(COMMAND uname -spirv OUTPUT_VARIABLE QORE_BUILD_HOST OUTPUT_STRIP_TRAILING_WHITESPACE)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
execute_process(COMMAND uname -smr OUTPUT_VARIABLE QORE_BUILD_HOST OUTPUT_STRIP_TRAILING_WHITESPACE)
else()
execute_process(COMMAND uname -a OUTPUT_VARIABLE QORE_BUILD_HOST OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
set(TARGET_BITS 64)
else()
set(TARGET_BITS 32)
endif()
if(NOT DEFINED NO_SIGNAL_HANDLING)
set(HAVE_SIGNAL_HANDLING true)
endif()
# prepare scanner and parser targets
bison_target(qoreparser lib/parser.ypp ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)
flex_target(qorescanner lib/scanner.lpp ${CMAKE_CURRENT_BINARY_DIR}/scanner.cpp COMPILE_FLAGS --nowarn)
add_flex_bison_dependency(qorescanner qoreparser)
# qpp
if(NOT HAVE_GETOPT_H)
set(QPP_GETOPT_LONG_SRC lib/getopt_long.cpp)
endif()
add_executable(qpp
lib/qpp.cpp
${QPP_GETOPT_LONG_SRC}
)
target_compile_definitions(qpp PUBLIC HAVE_UNIX_CONFIG_H)
# just fake qpp for macro
set(QORE_QPP_EXECUTABLE ${CMAKE_BINARY_DIR}/qpp)
target_link_libraries(qpp ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES})
# libqore generators
qore_wrap_qpp_value(LIBQORE_QPP_CPP_SRC DOXLIST QPP_DOX_SRC ${LIBQORE_QPP_SRC})
qore_wrap_qpp_value(PSEUDO_QPP_CPP_SRC DOXLIST QPP_DOX_SRC ${PSEUDO_QPP_SRC})
add_custom_target(QPP_GENERATED_FILES DEPENDS ${LIBQORE_QPP_CPP_SRC} ${PSEUDO_QPP_CPP_SRC})
add_custom_target(BISON_GENERATED_FILES DEPENDS ${BISON_qoreparser_OUTPUTS})
add_custom_target(FLEX_GENERATED_FILES DEPENDS ${FLEX_qorescanner_OUTPUTS})
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(LIBQORE_CPP_SRC
${CMAKE_CURRENT_BINARY_DIR}/parser.cpp
${CMAKE_CURRENT_BINARY_DIR}/scanner.cpp
lib/BarewordNode.cpp
lib/SelfVarrefNode.cpp
lib/StaticClassVarRefNode.cpp
lib/lvalue_ref.cpp
lib/ReferenceNode.cpp
lib/BackquoteNode.cpp
lib/ContextrefNode.cpp
lib/ComplexContextrefNode.cpp
lib/ContextRowNode.cpp
lib/ClassRefNode.cpp
lib/ScopedRefNode.cpp
lib/AbstractQoreNode.cpp
lib/QoreStringNode.cpp
lib/DateTimeNode.cpp
lib/qore_date_private.cpp
lib/QoreHashNode.cpp
lib/BinaryNode.cpp
lib/QoreNumberNode.cpp
lib/QoreNullNode.cpp
lib/QoreNothingNode.cpp
lib/VarRefNode.cpp
lib/FunctionCallNode.cpp
lib/NewComplexTypeNode.cpp
lib/QoreParseHashNode.cpp
lib/QoreClosureParseNode.cpp
lib/QoreClosureNode.cpp
lib/QoreImplicitArgumentNode.cpp
lib/QoreImplicitElementNode.cpp
lib/Function.cpp
lib/GlobalVariableList.cpp
lib/FunctionList.cpp
lib/AbstractStatement.cpp
lib/OnBlockExitStatement.cpp
lib/ExpressionStatement.cpp
lib/ReturnStatement.cpp
lib/StatementBlock.cpp
lib/ContextStatement.cpp
lib/SummarizeStatement.cpp
lib/IfStatement.cpp
lib/WhileStatement.cpp
lib/DoWhileStatement.cpp
lib/ForStatement.cpp
lib/ForEachStatement.cpp
lib/TryStatement.cpp
lib/RethrowStatement.cpp
lib/ThrowStatement.cpp
lib/SwitchStatement.cpp
lib/Variable.cpp
lib/support.cpp
lib/QoreType.cpp
lib/ModuleManager.cpp
lib/QoreException.cpp
lib/ExceptionSink.cpp
lib/QoreStandardException.cpp
lib/QoreXSinkException.cpp
lib/QoreClass.cpp
lib/TypedHashDecl.cpp
lib/QoreReflection.cpp
lib/Context.cpp
lib/FindNode.cpp
lib/charset.cpp
lib/unicode-charmaps.cpp
lib/ThreadClosureVariableStack.cpp
lib/ThreadLocalVariableData.cpp
lib/WeakReferenceNode.cpp
lib/WeakListReferenceNode.cpp
lib/WeakHashReferenceNode.cpp
lib/QoreProgram.cpp
lib/QoreProgramHelper.cpp
lib/QoreNamespace.cpp
lib/QoreNet.cpp
lib/QoreURL.cpp
lib/QoreFile.cpp
lib/QoreDir.cpp
lib/QoreSocket.cpp
lib/DateTime.cpp
lib/QoreLib.cpp
lib/QoreTimeZoneManager.cpp
lib/QoreString.cpp
lib/QoreObject.cpp
lib/RSet.cpp
lib/RSection.cpp
lib/QoreParseListNode.cpp
lib/QoreListNode.cpp
lib/qore-main.cpp
lib/QoreGetOpt.cpp
lib/QoreFtpClient.cpp
lib/DBI.cpp
lib/ConstantList.cpp
lib/QoreClassList.cpp
lib/HashDeclList.cpp
lib/thread.cpp
lib/AbstractThreadResource.cpp
lib/ThreadResourceList.cpp
lib/VRMutex.cpp
lib/VLock.cpp
lib/QoreRWLock.cpp
lib/AbstractSmartLock.cpp
lib/SmartMutex.cpp
lib/Datasource.cpp
lib/DatasourcePool.cpp
lib/ManagedDatasource.cpp
lib/SQLStatement.cpp
lib/QoreSQLStatement.cpp
lib/ExecArgList.cpp
lib/CallReferenceNode.cpp
lib/NamedScope.cpp
lib/RWLock.cpp
lib/QoreSSLBase.cpp
lib/QoreSSLCertificate.cpp
lib/QoreSSLPrivateKey.cpp
lib/QoreSocketObject.cpp
lib/QoreCondition.cpp
lib/QoreQueue.cpp
lib/QoreQueueHelper.cpp
lib/QoreRegex.cpp
lib/QoreRegexBase.cpp
lib/QoreRegexSubst.cpp
lib/QoreTransliteration.cpp
lib/Sequence.cpp
lib/QoreReferenceCounter.cpp
lib/QoreHTTPClient.cpp
lib/QoreHttpClientObject.cpp
lib/ParseOptionMap.cpp
lib/SystemEnvironment.cpp
lib/QoreCounter.cpp
lib/ReferenceArgumentHelper.cpp
lib/ReferenceHelper.cpp
lib/QoreTypeInfo.cpp
lib/QoreDeleteOperatorNode.cpp
lib/QoreRemoveOperatorNode.cpp
lib/QoreSpliceOperatorNode.cpp
lib/QoreExtractOperatorNode.cpp
lib/QoreCastOperatorNode.cpp
lib/QoreUnaryMinusOperatorNode.cpp
lib/QoreUnaryPlusOperatorNode.cpp
lib/QoreLogicalNotOperatorNode.cpp
lib/QoreDotEvalOperatorNode.cpp
lib/QoreLogicalEqualsOperatorNode.cpp
lib/QoreLogicalAbsoluteEqualsOperatorNode.cpp
lib/QoreModuloOperatorNode.cpp
lib/QoreBinaryAndOperatorNode.cpp
lib/QoreBinaryNotOperatorNode.cpp
lib/QoreBinaryOrOperatorNode.cpp
lib/QoreBinaryXorOperatorNode.cpp
lib/QoreShiftLeftOperatorNode.cpp
lib/QoreShiftRightOperatorNode.cpp
lib/QoreExistsOperatorNode.cpp
lib/QoreElementsOperatorNode.cpp
lib/QoreInstanceOfOperatorNode.cpp
lib/QoreHashObjectDereferenceOperatorNode.cpp
lib/QoreRegexMatchOperatorNode.cpp
lib/QoreRegexNMatchOperatorNode.cpp
lib/QoreRegexExtractOperatorNode.cpp
lib/QoreRegexSubstOperatorNode.cpp
lib/QoreTransliterationOperatorNode.cpp
lib/QoreAssignmentOperatorNode.cpp
lib/QoreListAssignmentOperatorNode.cpp
lib/QorePlusEqualsOperatorNode.cpp
lib/QoreIntPlusEqualsOperatorNode.cpp
lib/QoreMinusEqualsOperatorNode.cpp
lib/QoreIntMinusEqualsOperatorNode.cpp
lib/QoreOrEqualsOperatorNode.cpp
lib/QoreAndEqualsOperatorNode.cpp
lib/QoreModuloEqualsOperatorNode.cpp
lib/QoreMultiplyEqualsOperatorNode.cpp
lib/QoreDivideEqualsOperatorNode.cpp
lib/QoreXorEqualsOperatorNode.cpp
lib/QoreShiftLeftEqualsOperatorNode.cpp
lib/QoreShiftRightEqualsOperatorNode.cpp
lib/QorePostIncrementOperatorNode.cpp
lib/QoreIntPostIncrementOperatorNode.cpp
lib/QorePostDecrementOperatorNode.cpp
lib/QoreIntPostDecrementOperatorNode.cpp
lib/QorePreIncrementOperatorNode.cpp
lib/QoreIntPreIncrementOperatorNode.cpp
lib/QorePreDecrementOperatorNode.cpp
lib/QoreIntPreDecrementOperatorNode.cpp
lib/QoreLogicalLessThanOperatorNode.cpp
lib/QoreLogicalGreaterThanOperatorNode.cpp
lib/QoreLogicalLessThanOrEqualsOperatorNode.cpp
lib/QoreLogicalGreaterThanOrEqualsOperatorNode.cpp
lib/QoreDivisionOperatorNode.cpp
lib/QoreMapOperatorNode.cpp
lib/QoreMapSelectOperatorNode.cpp
lib/QoreHashMapOperatorNode.cpp
lib/QoreHashMapSelectOperatorNode.cpp
lib/QoreFoldlOperatorNode.cpp
lib/QoreNullCoalescingOperatorNode.cpp
lib/QoreValueCoalescingOperatorNode.cpp
lib/QoreChompOperatorNode.cpp
lib/QoreTrimOperatorNode.cpp
lib/QoreSquareBracketsOperatorNode.cpp
lib/QoreShiftOperatorNode.cpp
lib/QoreUnshiftOperatorNode.cpp
lib/QorePopOperatorNode.cpp
lib/QorePushOperatorNode.cpp
lib/QoreLogicalAndOperatorNode.cpp
lib/QoreLogicalOrOperatorNode.cpp
lib/QoreLogicalComparisonOperatorNode.cpp
lib/QorePlusOperatorNode.cpp
lib/QoreMinusOperatorNode.cpp
lib/QoreMultiplicationOperatorNode.cpp
lib/QoreBackgroundOperatorNode.cpp
lib/QoreValue.cpp
lib/StreamPipe.cpp
lib/CompressionTransforms.cpp
lib/EncryptionTransforms.cpp
lib/Transform.cpp
lib/QorePseudoMethods.cpp
lib/xxhash.cpp
lib/FunctionalOperator.cpp
lib/FunctionalOperatorInterface.cpp
lib/QoreQuestionMarkOperatorNode.cpp
lib/QoreKeysOperatorNode.cpp
lib/QoreSelectOperatorNode.cpp
lib/QoreRangeOperatorNode.cpp
lib/QoreSquareBracketsRangeOperatorNode.cpp
lib/QoreSerializable.cpp
lib/UnicodeCharacterIterator.cpp
lib/QoreEllipsesNode.cpp
lib/QoreRegexInterface.cpp
)
if (HAVE_SIGNAL_HANDLING)
set(LIBQORE_CPP_SRC ${LIBQORE_CPP_SRC} lib/QoreSignal.cpp)
endif ()
if (NOT HAVE_GLOB)
set(LIBQORE_CPP_SRC ${LIBQORE_CPP_SRC} lib/glob.cpp)
endif ()
if (NOT HAVE_INET_NTOP)
set(LIBQORE_CPP_SRC ${LIBQORE_CPP_SRC} lib/inet_ntop.cpp)
endif ()
if (NOT HAVE_INET_PTON)
set(LIBQORE_CPP_SRC ${LIBQORE_CPP_SRC} lib/inet_pton.cpp)
endif ()
if (${QORE_BUILD_TYPE_LWR} MATCHES "debug")
set(LIBQORE_CPP_SRC ${LIBQORE_CPP_SRC} lib/ql_debug.cpp)
endif ()
# get list of header files
file(GLOB LIBQORE_SOURCE_HEADERS "include/qore/*.h" "include/qore/intern/*.h")
set(LIBQORE_SOURCE_HEADERS ${LIBQORE_SOURCE_HEADERS} include/qore/qlist include/qore/safe_dslist include/qore/vector_map include/qore/vector_set)
# prepare libqore target
if (SINGLE_COMPILATION_UNIT)
add_library(libqore SHARED lib/single-compilation-unit.cpp ${LIBQORE_SOURCE_HEADERS})
else (SINGLE_COMPILATION_UNIT)
add_library(libqore SHARED ${LIBQORE_QPP_CPP_SRC} ${LIBQORE_CPP_SRC} ${LIBQORE_ASM_SRC} ${LIBQORE_SOURCE_HEADERS})
endif (SINGLE_COMPILATION_UNIT)
add_dependencies(QPP_GENERATED_FILES qpp)
add_dependencies(libqore QPP_GENERATED_FILES BISON_GENERATED_FILES FLEX_GENERATED_FILES)
target_compile_definitions(libqore PUBLIC _QORE_LIB_INTERN HAVE_UNIX_CONFIG_H)
target_compile_definitions(libqore PRIVATE MODULE_DIR="${MODULE_DIR}")
target_compile_definitions(libqore PRIVATE MODULE_VER_DIR="${MODULE_VER_DIR}")
target_compile_definitions(libqore PRIVATE USER_MODULE_DIR="${USER_MODULE_DIR}")
target_compile_definitions(libqore PRIVATE USER_MODULE_VER_DIR="${USER_MODULE_VER_DIR}")
if (WIN32 OR MINGW OR MSYS)
target_compile_definitions(libqore PUBLIC BUILDING_DLL)
endif (WIN32 OR MINGW OR MSYS)
target_include_directories(libqore PUBLIC ${CMAKE_SOURCE_DIR}/include ${BZIP2_INCLUDE_DIR} ${ICONV_INCLUDE_DIR} ${MPFR_INCLUDE_DIRS} ${LIBQORE_OPTIONAL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR} ${PCRE_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS})
set(QORE_LIBS ${LIBJSIG} ${BZIP2_LIBRARIES} ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${ICONV_LIBRARY} ${LIBQORE_LIBS} ${LIBQORE_OPTIONAL_LIBS} ${MPFR_LIBRARIES} ${OPENSSL_LIBRARIES} ${PCRE_LDFLAGS} ${ZLIB_LIBRARIES})
string(REPLACE ";" " " CMAKE_LDFLAGS "${QORE_LIBS}")
string(STRIP "${CMAKE_LDFLAGS}" CMAKE_LDFLAGS)
string(STRIP "${CMAKE_CXX_FLAGS}" CMAKE_CXX_FLAGS)
target_link_libraries(libqore ${QORE_LIBS})
if (WIN32 OR MINGW OR MSYS)
target_link_libraries(libqore ${WINSOCKET_LIBRARIES})
endif (WIN32 OR MINGW OR MSYS)
set_target_properties(libqore PROPERTIES OUTPUT_NAME qore)
if (APPLE)
set_target_properties(libqore PROPERTIES VERSION 12)
set_target_properties(libqore PROPERTIES SOVERSION 12)
set_target_properties(libqore PROPERTIES INSTALL_NAME_DIR ${CMAKE_INSTALL_FULL_LIBDIR})
else (APPLE)
set_target_properties(libqore PROPERTIES VERSION 12.5.0)
set_target_properties(libqore PROPERTIES SOVERSION 12)
endif (APPLE)
# prepare qore target
add_executable(qore ${QORE_CPP_SRC})
target_link_libraries(qore libqore)
#add_executable(qr ${QR_CPP_SRC})
#target_link_libraries(qr libqore)
#set_target_properties(qore qr PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
set_target_properties(qore PROPERTIES INSTALL_RPATH_USE_LINK_PATH ${CMAKE_INSTALL_FULL_LIBDIR})
if (DEFINED LIBJSIG AND APPLE)
add_custom_command(TARGET qore
POST_BUILD COMMAND
${CMAKE_INSTALL_NAME_TOOL} -change @rpath/libjsig.dylib ${LIBJSIG} qore
POST_BUILD COMMAND
${CMAKE_INSTALL_NAME_TOOL} -change @rpath/libjsig.dylib ${LIBJSIG} libqore.dylib
)
endif()
# configuration files
message(STATUS "Generating unix-config.h")
configure_file(${CMAKE_SOURCE_DIR}/cmake/unix-config.h.cmake
${CMAKE_BINARY_DIR}/include/qore/intern/unix-config.h)
message(STATUS "Generating qore-version.h")
configure_file(${CMAKE_SOURCE_DIR}/cmake/qore-version.h.cmake
${CMAKE_BINARY_DIR}/include/qore/qore-version.h)
message(STATUS "Generating QoreConfigVersion.cmake")
configure_file(${CMAKE_SOURCE_DIR}/cmake/QoreConfigVersion.cmake.in
${CMAKE_BINARY_DIR}/cmake/QoreConfigVersion.cmake @ONLY)
message(STATUS "Generating QoreConfig.cmake")
configure_file(${CMAKE_SOURCE_DIR}/cmake/QoreConfig.cmake.in
${CMAKE_BINARY_DIR}/cmake/QoreConfig.cmake @ONLY)
message(STATUS "Generating qore.pc")
configure_file(${CMAKE_SOURCE_DIR}/qore.pc.in
${CMAKE_BINARY_DIR}/qore.pc @ONLY)
# prepare dist target
qore_dist(${VERSION})
# prepare installation targets
install(PROGRAMS ${QORE_BIN_FILES}
DESTINATION ${CMAKE_INSTALL_FULL_BINDIR})
install(TARGETS qore qpp libqore
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR})
#install(TARGETS qore qpp qr libqore
# RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR})
install(FILES ${CMAKE_BINARY_DIR}/cmake/QoreConfig.cmake ${CMAKE_BINARY_DIR}/cmake/QoreConfigVersion.cmake cmake/QoreMacros.cmake
DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/cmake/Qore)
install(FILES ${CMAKE_BINARY_DIR}/qore.pc
DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig)
install(DIRECTORY include/qore
DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}
PATTERN intern EXCLUDE
PATTERN minitest.hpp EXCLUDE
PATTERN macros-none.h EXCLUDE
PATTERN hash_map_include.h EXCLUDE
PATTERN slist_include.h EXCLUDE
PATTERN qore-version.h EXCLUDE)
install(FILES ${CMAKE_BINARY_DIR}/include/qore/qore-version.h
DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}/qore)
install(FILES qore.1
DESTINATION ${CMAKE_INSTALL_FULL_MANDIR}/man1)
install(FILES
doxygen/Doxyfile.in
doxygen/qore-logo-55x200.png
doxygen/qore-logo-55x151-white.png
doxygen/dox_qore.css
doxygen/DataProvider-Full.svg
doxygen/elastic-logo.svg
doxygen/Haltian-EmpathicBuilding.svg
doxygen/SqlUtil-Full.svg
doxygen/Qore-Q.ico
doxygen/header_template.html
doxygen/footer_template.html
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/qore)
# prepare documentation targets
find_package(Doxygen)
if (DOXYGEN_FOUND)
# documentation
configure_file(${CMAKE_SOURCE_DIR}/doxygen/footer_template.html ${CMAKE_BINARY_DIR}/doxygen/footer_template.html @ONLY)
add_custom_target(docs COMMENT "Generating API documentation")
# doc generators
qore_wrap_dox(QORE_DOX_SRC ${QORE_DOX_TMPL_SRC})
add_custom_target(QORE_DOX_FILES DEPENDS ${QORE_DOX_SRC})
add_dependencies(QORE_DOX_FILES qpp)
# get space-separated string from list of generated files
string(REPLACE ";" " " QORE_DOX_SRC_STRING "${QORE_DOX_SRC}")
# get space-separated string from list of generated files
string(REPLACE ";" " " QPP_DOX_SRC_STRING "${QPP_DOX_SRC}")
add_dependencies(libqore QORE_DOX_FILES)
# library
message(STATUS "Preparing Doxyfile for library")
configure_file(${CMAKE_SOURCE_DIR}/doxygen/lib/Doxyfile.in ${CMAKE_BINARY_DIR}/doxygen/Doxyfile.lib @ONLY)
add_custom_target(docs-lib
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/docs/library/html
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/doxygen/Doxyfile.lib
COMMAND QORE_MODULE_DIR=${CMAKE_SOURCE_DIR}/qlib ${QORE_QDX_EXECUTABLE} --post ${CMAKE_BINARY_DIR}/docs/library/html/*.html
COMMAND QORE_MODULE_DIR=${CMAKE_SOURCE_DIR}/qlib ${QORE_QDX_EXECUTABLE} --post ${CMAKE_BINARY_DIR}/docs/library/html/search/*.html
COMMENT "Generating API documentation with Doxygen for: lib"
VERBATIM
)
add_dependencies(docs docs-lib)
# lang
message(STATUS "Preparing Doxyfile for lang")
configure_file(${CMAKE_SOURCE_DIR}/doxygen/lang/Doxyfile.in ${CMAKE_BINARY_DIR}/doxygen/Doxyfile.lang @ONLY)
add_custom_target(docs-lang
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/docs/lang/html
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/doxygen/Doxyfile.lang
COMMAND QORE_MODULE_DIR=${CMAKE_SOURCE_DIR}/qlib ${QORE_QDX_EXECUTABLE} --post ${CMAKE_BINARY_DIR}/docs/lang/html/*.html ${CMAKE_BINARY_DIR}/docs/lang/html/*.js
COMMAND QORE_MODULE_DIR=${CMAKE_SOURCE_DIR}/qlib ${QORE_QDX_EXECUTABLE} --post ${CMAKE_BINARY_DIR}/docs/lang/html/search/*.html ${CMAKE_BINARY_DIR}/docs/lang/html/search/*.js
DEPENDS QORE_DOX_FILES
COMMENT "Generating API documentation with Doxygen for: lang"
VERBATIM
)
add_dependencies(docs docs-lang)
endif (DOXYGEN_FOUND)
add_custom_target(install-docs
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_BINARY_DIR}/docs/ ${CMAKE_INSTALL_PREFIX}/share/doc/qore
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/docs
COMMENT "Installing API documentation to: ${CMAKE_INSTALL_PREFIX}/share/doc/qore"
VERBATIM
)
add_dependencies(install-docs docs)
# end of documentation
# astparser module
add_subdirectory(modules/astparser)
# reflection module
add_subdirectory(modules/reflection)
# logger module
add_subdirectory(modules/logger_bin)
# HACK: we need to simulate QORE_USER_MODULES_DIR as the versioned one
# for qore core qlib modules.
# NOTE: anything below will be installed into versioned dirs!
set(QORE_USER_MODULES_DIR ${USER_MODULE_VER_DIR})
# modules must go after docs target - it's depending on it
# qlib modules + their documentation
# ---
# modules here are divided to groups in the order of dependence
# and then sorted alphabetically inside the groups
# base modules
qore_user_module("qlib/DatasourceProvider.qm" "")
qore_user_module("qlib/DebugUtil.qm" "")
qore_user_module("qlib/FsUtil.qm" "")
qore_user_module("qlib/Qdx.qm" "")
qore_user_module("qlib/Qorize.qm" "")
qore_user_module("qlib/Util.qm" "")
qore_user_module("qlib/WebSocketUtil.qm" "")
qore_user_module("qlib/MapperUtil.qm" "")
# base 2 modules
qore_user_module("qlib/FileLocationHandler" "Util")
qore_user_module("qlib/Diff.qm" "Util")
qore_user_module("qlib/Logger.qm" "Util;modules/logger_bin/logger_bin")
qore_user_module("qlib/Mime.qm" "Util")
qore_user_module("qlib/QUnit.qm" "Util")
qore_user_module("qlib/TextWrap.qm" "Util")
# base 3 modules
qore_user_module("qlib/DataProvider" "MapperUtil;Mime;Util" "DataProvider-Full.svg")
qore_user_module("qlib/DebugProgramControl.qm" "DebugUtil")
qore_user_module("qlib/HttpServerUtil.qm" "Mime;Util;FileLocationHandler")
qore_user_module("qlib/MailMessage.qm" "Mime")
# base 4 modules
qore_user_module("qlib/FilePoller.qm" "Util;DataProvider")
qore_user_module("qlib/FileDataProvider" "FsUtil;DataProvider")
qore_user_module("qlib/FtpClientDataProvider" "DataProvider")
qore_user_module("qlib/HttpClientDataProvider" "DataProvider;FileLocationHandler")
qore_user_module("qlib/SqlUtil" "Util;DataProvider" "SqlUtil-Full.svg")
qore_user_module("qlib/ConnectionProvider" "Util;DataProvider")
qore_user_module("qlib/CsvUtil" "Util;DataProvider")
qore_user_module("qlib/FixedLengthUtil" "Util;DataProvider")
qore_user_module("qlib/Mapper.qm" "MapperUtil;DataProvider")
qore_user_module("qlib/FtpPollerUtil.qm" "DataProvider")
qore_user_module("qlib/BulkSqlUtil" "SqlUtil")
qore_user_module("qlib/Schema.qm" "SqlUtil;Util")
qore_user_module("qlib/TelnetClient.qm" "ConnectionProvider")
qore_user_module("qlib/DebugCmdLine.qm" "ConnectionProvider;DebugUtil;DebugProgramControl")
qore_user_module("qlib/DiscordWebSocketClient.qm" "ConnectionProvider;Util;WebSocketUtil;WebSocketClient")
qore_user_module("qlib/HttpServer.qm" "HttpServerUtil;Mime;Util")
qore_user_module("qlib/Pop3Client.qm" "ConnectionProvider;MailMessage;Mime")
qore_user_module("qlib/RestSchemaValidator.qm" "HttpServerUtil;Logger")
qore_user_module("qlib/SewioWebSocketClient.qm" "ConnectionProvider;Util;WebSocketUtil;WebSocketClient")
qore_user_module("qlib/SmtpClient.qm" "ConnectionProvider;MailMessage;Mime")
qore_user_module("qlib/WebSocketHandler.qm" "HttpServerUtil;WebSocketUtil")
qore_user_module("qlib/WebUtil.qm" "HttpServerUtil;Mime;Util")
# base 5 modules
qore_user_module("qlib/MssqlSqlUtilBase.qm" "SqlUtil;DataProvider")
qore_user_module("qlib/MysqlSqlUtil.qm" "SqlUtil;DataProvider")
qore_user_module("qlib/OracleSqlUtilBase.qm" "SqlUtil;Util;DataProvider")
qore_user_module("qlib/PgsqlSqlUtilBase.qm" "SqlUtil;DataProvider")
qore_user_module("qlib/Sqlite3SqlUtil.qm" "SqlUtil;DataProvider")
qore_user_module("qlib/XdbcFirebirdSqlUtilBase.qm" "SqlUtil;DataProvider")
qore_user_module("qlib/WebSocketClient.qm" "ConnectionProvider;Util;WebSocketUtil;DataProvider")
qore_user_module("qlib/TableMapper.qm" "MapperUtil;Mapper;SqlUtil;DataProvider")
qore_user_module("qlib/DbDataProvider" "DataProvider;SqlUtil;BulkSqlUtil")
qore_user_module("qlib/FtpPoller.qm" "FtpPollerUtil;Util;DataProvider")
qore_user_module("qlib/SchemaReverse.qm" "Qorize;Schema;SqlUtil;Util")
qore_user_module("qlib/DebugHandler.qm" "DebugProgramControl;DebugUtil;HttpServer;HttpServerUtil;WebSocketHandler;WebSocketUtil")
qore_user_module("qlib/DebugLinenoiseCmdLine.qm" "DebugUtil;DebugCmdLine")
qore_user_module("qlib/RestHandler.qm" "HttpServerUtil;HttpServer;Mime;Util;RestSchemaValidator;Logger")
qore_user_module("qlib/Swagger.qm" "Mime;Util;HttpServerUtil;RestSchemaValidator;Logger")
qore_user_module("qlib/VscDebugAdapter.qm" "DebugCmdLine;DebugUtil;Util")
qore_user_module("qlib/Pop3ClientDataProvider" "Pop3Client;ConnectionProvider;DataProvider")
# base 6 modules
qore_user_module("qlib/FreetdsSqlUtil.qm" "SqlUtil;DataProvider;MssqlSqlUtilBase")
qore_user_module("qlib/JdbcMicrosoftSqlUtil.qm" "SqlUtil;DataProvider;MssqlSqlUtilBase")
qore_user_module("qlib/OracleSqlUtil.qm" "OracleSqlUtil;SqlUtil;Util;DataProvider")
qore_user_module("qlib/JdbcOracleSqlUtil.qm" "OracleSqlUtil;SqlUtil;Util;DataProvider")
qore_user_module("qlib/PgsqlSqlUtil.qm" "PgsqlSqlUtilBase;SqlUtil;DataProvider")
qore_user_module("qlib/JdbcPostgresqlSqlUtil.qm" "PgsqlSqlUtilBase;SqlUtil;DataProvider")
qore_user_module("qlib/JdbcFirebirdSqlUtil.qm" "XdbcFirebirdSqlUtilBase;SqlUtil;DataProvider")
qore_user_module("qlib/OdbcFirebirdSqlUtil.qm" "XdbcFirebirdSqlUtilBase;SqlUtil;DataProvider")
qore_user_module("qlib/RestClient.qm" "DataProvider;ConnectionProvider;Mime;RestSchemaValidator;Swagger;FileLocationHandler")
# base 7 modules
qore_user_module("qlib/SalesforceRestClient.qm" "ConnectionProvider;Mime;RestClient;DataProvider")
qore_user_module("qlib/SewioRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/ZeyosRestClient.qm" "ConnectionProvider;RestClient;Swagger")
qore_user_module("qlib/BillwerkRestClient.qm" "ConnectionProvider;RestClient")
qore_user_module("qlib/Sap4HanaRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/CdsRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/DiscordRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/GoogleRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/HueRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/MewsRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/NetSuiteRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/OpenAiRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/ServiceNowRestClient.qm" "ConnectionProvider;Mime;RestClient")
qore_user_module("qlib/AwsRestClient.qm" "ConnectionProvider;RestClient;RestSchemaValidator")
qore_user_module("qlib/SwaggerDataProvider" "Swagger;RestClient;RestSchemaValidator;DataProvider")
qore_user_module("qlib/CdsRestDataProvider" "RestClient;CdsRestClient;RestSchemaValidator;DataProvider")
qore_user_module("qlib/ServiceNowRestDataProvider" "RestClient;ServiceNowRestClient;RestSchemaValidator;DataProvider")
qore_user_module("qlib/RestClientDataProvider" "RestClient;DataProvider")
qore_user_module("qlib/ElasticSearchDataProvider" "RestClient;DataProvider" "elastic-logo.svg")
qore_user_module("qlib/EmpathicBuildingDataProvider" "RestClient;DataProvider" "Haltian-EmpathicBuilding.svg")
# base 8 modules
qore_user_module("qlib/SalesforceRestDataProvider" "RestClient;SalesforceRestClient;DataProvider")
qore_user_module("qlib/AwsRestClientDataProvider" "RestClient;DataProvider;RestClientDataProvider")
qore_user_module("qlib/GoogleDataProvider" "GoogleRestClient;RestClient;DataProvider")
qore_user_module("qlib/DiscordDataProvider" "DiscordRestClient;RestClient;DataProvider")
qore_user_module("qlib/MewsRestDataProvider" "MewsRestClient;RestClient;DataProvider;SwaggerDataProvider" "mews-logo-white.svg")
qore_user_module("qlib/OpenAiDataProvider" "OpenAiRestClient;ConnectionProvider;Mime;RestClient")
# base 9 modules
qore_user_module("qlib/GoogleCalendarDataProvider" "GoogleDataProvider;GoogleRestClient;RestClient;DataProvider")
qore_user_module("qlib/GmailDataProvider" "GoogleDataProvider;GoogleRestClient;RestClient;DataProvider")
# print info
message(STATUS "")
message(STATUS "Implicit link libraries and flags detected for C++: ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES}")