-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
577 lines (503 loc) Β· 22.1 KB
/
Copy pathCMakeLists.txt
File metadata and controls
577 lines (503 loc) Β· 22.1 KB
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
cmake_minimum_required(VERSION 3.20)
##################################################
# Database System CMakeLists.txt
#
# Tier 3: Database Layer
# Pure, lightweight Core DAL library with multi-backend support.
# Provides database abstraction and PostgreSQL implementation.
#
# Dependency Chain:
# database_system (Tier 3)
# βββ common_system (Tier 0) [REQUIRED] - ILogger, GlobalLoggerRegistry, LOG_* macros
# βββ thread_system (Tier 1) [OPTIONAL]
# βββ monitoring_system (Tier 2) [OPTIONAL]
# βββ container_system (Tier 1) [OPTIONAL]
##################################################
# Project definition
project(database_system
VERSION 0.1.0
DESCRIPTION "Pure, Lightweight C++20 Core DAL Library"
LANGUAGES CXX
)
# C++ Standard
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Detect C++20 coroutine support (optional feature)
include(CheckCXXSourceCompiles)
check_cxx_source_compiles("
#include <coroutine>
struct task {
struct promise_type {
task get_return_object() { return {}; }
std::suspend_never initial_suspend() { return {}; }
std::suspend_never final_suspend() noexcept { return {}; }
void return_void() {}
void unhandled_exception() {}
};
};
task foo() { co_return; }
int main() {}
" HAS_COROUTINES)
if(HAS_COROUTINES)
message(STATUS "C++20 coroutines available - async features enabled")
else()
message(STATUS "C++20 coroutines not available - async features disabled")
endif()
# Options
option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)
option(USE_UNIT_TEST "Use unit test" ON)
option(BUILD_DATABASE_SAMPLES "Build database system samples" ON)
option(BUILD_DATABASE_EXAMPLES "Build database system usage examples" OFF)
option(USE_POSTGRESQL "Enable PostgreSQL support" ON)
option(USE_SQLITE "Enable SQLite support" OFF)
option(USE_MONGODB "Enable MongoDB backend (EXPERIMENTAL - see docs/BACKENDS.md)" OFF)
option(USE_REDIS "Enable Redis backend (EXPERIMENTAL - see docs/BACKENDS.md)" OFF)
# Experimental backend warnings
if(USE_MONGODB)
message(WARNING
"MongoDB support is EXPERIMENTAL and NOT recommended for production use.\n"
" - Test coverage is limited (no dedicated test suite)\n"
" - APIs may change in future releases\n"
" - See docs/BACKENDS.md for stabilization roadmap")
endif()
if(USE_REDIS)
message(WARNING
"Redis support is EXPERIMENTAL and NOT recommended for production use.\n"
" - Redis is not intended for persistent data storage\n"
" - Test coverage is limited (no dedicated test suite)\n"
" - APIs may change in future releases\n"
" - See docs/BACKENDS.md for stabilization roadmap")
endif()
option(BUILD_DATABASE "Build database module" ON)
option(USE_THREAD_SYSTEM "Enable thread_system integration for high-performance threading" ON)
option(USE_MONITORING_SYSTEM "Enable monitoring_system integration for metrics and profiling" ON)
option(USE_CONTAINER_SYSTEM "Enable container_system integration for high-performance serialization" ON)
option(BUILD_INTEGRATED_DATABASE "Build integrated database system with adapter pattern" ON)
option(DATABASE_BUILD_BENCHMARKS "Build database system benchmarks" OFF)
option(DATABASE_BUILD_INTEGRATION_TESTS "Build database system integration tests" ON)
option(ENABLE_COVERAGE "Enable code coverage reporting" OFF)
# Coverage Configuration (DB-006)
if(ENABLE_COVERAGE)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
message(STATUS "Code coverage enabled")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -fprofile-arcs -ftest-coverage -O0 -g")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --coverage")
# Find coverage tools
find_program(GCOV_PATH gcov)
find_program(GCOVR_PATH gcovr)
if(NOT GCOV_PATH)
message(WARNING "gcov not found - coverage reports may not work")
endif()
if(GCOVR_PATH)
# Coverage report generation target
add_custom_target(coverage
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/coverage
COMMAND ${GCOVR_PATH}
--root ${CMAKE_SOURCE_DIR}
--exclude '.*tests/.*'
--exclude '.*third_party/.*'
--exclude '.*samples/.*'
--exclude '.*examples/.*'
--exclude '.*benchmarks/.*'
--html --html-details
--output ${CMAKE_BINARY_DIR}/coverage/index.html
--xml ${CMAKE_BINARY_DIR}/coverage/coverage.xml
--print-summary
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Generating code coverage report..."
)
# Coverage threshold check target (80% line coverage)
add_custom_target(coverage-check
COMMAND ${GCOVR_PATH}
--root ${CMAKE_SOURCE_DIR}
--exclude '.*tests/.*'
--exclude '.*third_party/.*'
--exclude '.*samples/.*'
--exclude '.*examples/.*'
--exclude '.*benchmarks/.*'
--fail-under-line 80
--print-summary
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Checking coverage threshold (80% line coverage required)..."
)
message(STATUS "Coverage targets available: 'coverage', 'coverage-check'")
else()
message(WARNING "gcovr not found - install with 'pip install gcovr'")
endif()
else()
message(WARNING "Code coverage only supported with GCC/Clang")
set(ENABLE_COVERAGE OFF CACHE BOOL "Coverage not supported" FORCE)
endif()
endif()
# Respect global BUILD_INTEGRATION_TESTS flag if set
if(DEFINED BUILD_INTEGRATION_TESTS)
if(BUILD_INTEGRATION_TESTS)
set(_DATABASE_BUILD_IT_VALUE ON)
else()
set(_DATABASE_BUILD_IT_VALUE OFF)
endif()
set(DATABASE_BUILD_INTEGRATION_TESTS ${_DATABASE_BUILD_IT_VALUE} CACHE BOOL "Build database system integration tests" FORCE)
endif()
# Output directories
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
# Debug flags
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
# Platform-specific settings
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0A00) # Windows 10
elseif(APPLE)
add_definitions(-DAPPLE_PLATFORM)
endif()
# Include CMake utilities
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(FindSystemDependency)
# Find required packages
find_package(Threads REQUIRED)
# Optional: OpenSSL for real cryptography in secure_connection
find_package(OpenSSL QUIET)
if(OPENSSL_FOUND)
message(STATUS "OpenSSL ${OPENSSL_VERSION} found β secure_connection will use PBKDF2/AES-256-GCM")
else()
message(STATUS "OpenSSL not found β secure_connection will use placeholder crypto (NOT for production)")
endif()
##################################################
# ASIO dependency (required, header-only)
#
# SOUP traceability (IEC 62304): ASIO is a critical async I/O dependency.
# Version must be kept in sync with vcpkg.json "version>=" field.
#
# Version history:
# 1.29.0 - Initial pinned version
# 1.30.2 - Upgraded to ecosystem standard (aligned with network_system)
##################################################
set(DATABASE_SYSTEM_ASIO_PINNED_VERSION "1.30.2")
find_package(asio QUIET CONFIG)
if(TARGET asio::asio)
# Detect version from vcpkg-provided headers
get_target_property(_asio_inc asio::asio INTERFACE_INCLUDE_DIRECTORIES)
if(_asio_inc)
list(GET _asio_inc 0 _asio_inc_first)
set(_asio_version_file "${_asio_inc_first}/asio/version.hpp")
if(EXISTS "${_asio_version_file}")
file(STRINGS "${_asio_version_file}" _asio_version_line
REGEX "^#define ASIO_VERSION [0-9]+")
if(_asio_version_line)
string(REGEX MATCH "[0-9]+" _asio_version_int "${_asio_version_line}")
math(EXPR _asio_major "${_asio_version_int} / 100000")
math(EXPR _asio_minor "(${_asio_version_int} / 100) % 1000")
math(EXPR _asio_patch "${_asio_version_int} % 100")
set(ASIO_DETECTED_VERSION "${_asio_major}.${_asio_minor}.${_asio_patch}")
endif()
endif()
endif()
message(STATUS "ASIO found via CMake package (pinned: ${DATABASE_SYSTEM_ASIO_PINNED_VERSION}, detected: ${ASIO_DETECTED_VERSION})")
else()
find_path(ASIO_INCLUDE_DIR NAMES asio.hpp DOC "Path to standalone ASIO headers")
if(ASIO_INCLUDE_DIR)
set(_asio_version_file "${ASIO_INCLUDE_DIR}/asio/version.hpp")
if(EXISTS "${_asio_version_file}")
file(STRINGS "${_asio_version_file}" _asio_version_line
REGEX "^#define ASIO_VERSION [0-9]+")
if(_asio_version_line)
string(REGEX MATCH "[0-9]+" _asio_version_int "${_asio_version_line}")
math(EXPR _asio_major "${_asio_version_int} / 100000")
math(EXPR _asio_minor "(${_asio_version_int} / 100) % 1000")
math(EXPR _asio_patch "${_asio_version_int} % 100")
set(ASIO_DETECTED_VERSION "${_asio_major}.${_asio_minor}.${_asio_patch}")
endif()
endif()
message(STATUS "ASIO found at: ${ASIO_INCLUDE_DIR} (pinned: ${DATABASE_SYSTEM_ASIO_PINNED_VERSION}, detected: ${ASIO_DETECTED_VERSION})")
else()
message(WARNING "ASIO not found - async features may not be available")
endif()
endif()
# common_system integration (REQUIRED for Result<T> pattern)
message(STATUS "Searching for common_system...")
find_system_dependency(common_system)
# Fallback: check for TARGET directly (unified build case where PARENT_SCOPE may not propagate)
if(NOT common_system_FOUND AND TARGET common_system)
message(STATUS "Found common_system as existing target (unified build)")
set(common_system_FOUND TRUE)
endif()
if(common_system_FOUND)
message(STATUS "common_system integration enabled")
set(BUILD_WITH_COMMON_SYSTEM ON)
else()
message(FATAL_ERROR "common_system not found! database_system requires common_system v1.0+.\n"
"The Result<T> pattern from common_system is now mandatory.\n"
"Please install common_system first (Tier 0 dependency).")
endif()
# thread_system integration (optional)
if(USE_THREAD_SYSTEM)
message(STATUS "Searching for thread_system...")
find_system_dependency(thread_system)
if(thread_system_FOUND)
message(STATUS "thread_system integration enabled")
else()
message(WARNING "thread_system not found - integration disabled. Install thread_system or set USE_THREAD_SYSTEM=OFF to suppress this warning.")
set(USE_THREAD_SYSTEM OFF CACHE BOOL "thread_system not found" FORCE)
endif()
endif()
# monitoring_system integration (optional)
if(USE_MONITORING_SYSTEM)
message(STATUS "Searching for monitoring_system...")
find_system_dependency(monitoring_system)
if(monitoring_system_FOUND)
message(STATUS "monitoring_system integration enabled")
else()
message(WARNING "monitoring_system not found - integration disabled. Install monitoring_system or set USE_MONITORING_SYSTEM=OFF to suppress this warning.")
set(USE_MONITORING_SYSTEM OFF CACHE BOOL "monitoring_system not found" FORCE)
endif()
endif()
# container_system integration (optional)
if(USE_CONTAINER_SYSTEM)
message(STATUS "Searching for container_system...")
find_system_dependency(container_system)
if(container_system_FOUND)
message(STATUS "container_system integration enabled")
else()
message(WARNING "container_system not found - integration disabled. Install container_system or set USE_CONTAINER_SYSTEM=OFF to suppress this warning.")
set(USE_CONTAINER_SYSTEM OFF CACHE BOOL "container_system not found" FORCE)
endif()
endif()
##################################################
# Modular Architecture
##################################################
# Database module
if(BUILD_DATABASE)
add_subdirectory(database)
message(STATUS "Database module will be built")
else()
message(STATUS "Database module disabled")
endif()
##################################################
# Samples
##################################################
if(BUILD_DATABASE_SAMPLES AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/samples)
add_subdirectory(samples)
message(STATUS "Database samples will be built")
endif()
##################################################
# Examples
##################################################
if(BUILD_DATABASE_EXAMPLES AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/examples)
add_subdirectory(examples)
message(STATUS "Database examples will be built")
endif()
##################################################
# Testing
##################################################
# Unit tests
if(USE_UNIT_TEST AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tests)
enable_testing()
add_subdirectory(tests)
message(STATUS "Database tests will be built")
endif()
##################################################
# Benchmarks
##################################################
if(DATABASE_BUILD_BENCHMARKS AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/benchmarks)
add_subdirectory(benchmarks)
message(STATUS "Database benchmarks will be built")
endif()
##################################################
# Integration Tests
##################################################
if(DATABASE_BUILD_INTEGRATION_TESTS AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/integration_tests)
add_subdirectory(integration_tests)
message(STATUS "Database integration tests will be built")
endif()
##################################################
# Installation Rules
#
# Uses Tiered Install Degradation: headers and config files are always
# installed, but install(EXPORT) / export(EXPORT) are conditional on all
# PUBLIC dependencies being IMPORTED targets (i.e., already in an export
# set). This allows subdirectory builds to get headers + library + config
# while avoiding CMake generation errors from non-IMPORTED transitive deps.
##################################################
include(GNUInstallDirs)
if(BUILD_DATABASE)
# --- Determine export capability via IMPORTED property detection ------
set(_DB_CAN_EXPORT TRUE)
set(_DB_NON_IMPORTED_DEPS "")
# Check common_system (required dependency)
foreach(_target common_system::common_system common_system)
if(TARGET ${_target})
get_target_property(_imp ${_target} IMPORTED)
if(NOT _imp)
set(_DB_CAN_EXPORT FALSE)
list(APPEND _DB_NON_IMPORTED_DEPS "${_target}")
endif()
break()
endif()
endforeach()
# Check thread_system (optional ecosystem dependency)
foreach(_target thread_system::thread_system thread_system)
if(TARGET ${_target})
get_target_property(_imp ${_target} IMPORTED)
if(NOT _imp)
set(_DB_CAN_EXPORT FALSE)
list(APPEND _DB_NON_IMPORTED_DEPS "${_target}")
endif()
break()
endif()
endforeach()
# Check monitoring_system (optional ecosystem dependency)
foreach(_target monitoring_system::monitoring_system monitoring_system)
if(TARGET ${_target})
get_target_property(_imp ${_target} IMPORTED)
if(NOT _imp)
set(_DB_CAN_EXPORT FALSE)
list(APPEND _DB_NON_IMPORTED_DEPS "${_target}")
endif()
break()
endif()
endforeach()
# Check container_system (optional ecosystem dependency)
foreach(_target container_system::container_system container_system)
if(TARGET ${_target})
get_target_property(_imp ${_target} IMPORTED)
if(NOT _imp)
set(_DB_CAN_EXPORT FALSE)
list(APPEND _DB_NON_IMPORTED_DEPS "${_target}")
endif()
break()
endif()
endforeach()
list(REMOVE_DUPLICATES _DB_NON_IMPORTED_DEPS)
# --- Tier 1: Headers (ALWAYS) ----------------------------------------
install(DIRECTORY database/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/database_system/database
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp"
PATTERN "tests" EXCLUDE
PATTERN "samples" EXCLUDE
)
install(DIRECTORY include/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp"
)
# --- Tier 2+3: Targets + conditional export --------------------------
if(_DB_CAN_EXPORT)
# Tier 2: Install library target with export set
install(TARGETS database
EXPORT database_system-targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/database_system
)
# Tier 3: Install + build-tree export sets
install(EXPORT database_system-targets
FILE database_system-targets.cmake
NAMESPACE database_system::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/database_system
)
export(EXPORT database_system-targets
FILE "${CMAKE_CURRENT_BINARY_DIR}/database_system-targets.cmake"
NAMESPACE database_system::
)
else()
# Tier 2 only: Install library without EXPORT (no export set)
install(TARGETS database
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
message(STATUS "database_system: install(EXPORT) skipped β non-IMPORTED deps: "
"${_DB_NON_IMPORTED_DEPS}. Headers and library are installed.")
endif()
# --- Tier 4: Config + version files (ALWAYS) -------------------------
include(CMakePackageConfigHelpers)
configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/database_system-config.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/database_system-config.cmake"
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/database_system
PATH_VARS CMAKE_INSTALL_INCLUDEDIR
)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/database_system-config-version.cmake"
VERSION ${PROJECT_VERSION}
COMPATIBILITY AnyNewerVersion
)
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/database_system-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/database_system-config-version.cmake"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/database_system
)
endif()
##################################################
# Summary
##################################################
message(STATUS "")
message(STATUS "========================================")
message(STATUS "Database System Build Configuration:")
message(STATUS "========================================")
message(STATUS "")
message(STATUS "Version: ${PROJECT_VERSION}")
message(STATUS "C++ Standard: ${CMAKE_CXX_STANDARD}")
message(STATUS "")
message(STATUS "Dependency Chain (Tier 3):")
message(STATUS " database_system")
message(STATUS " βββ common_system (Tier 0): ${BUILD_WITH_COMMON_SYSTEM} [REQUIRED] - ILogger, LOG_* macros")
message(STATUS " βββ thread_system (Tier 1): ${USE_THREAD_SYSTEM} [OPTIONAL]")
message(STATUS " βββ monitoring_system (Tier 2): ${USE_MONITORING_SYSTEM} [OPTIONAL]")
message(STATUS " βββ container_system (Tier 1): ${USE_CONTAINER_SYSTEM} [OPTIONAL]")
message(STATUS "")
# Dependency chain verification
message(STATUS "Required Dependencies:")
if(BUILD_WITH_COMMON_SYSTEM AND common_system_FOUND)
message(STATUS " β common_system (Tier 0) - Result<T> pattern")
else()
message(FATAL_ERROR " β common_system - REQUIRED but not found!")
endif()
message(STATUS "")
message(STATUS "Third-Party Dependencies:")
if(ASIO_DETECTED_VERSION)
message(STATUS " ASIO: ${ASIO_DETECTED_VERSION} (pinned >= ${DATABASE_SYSTEM_ASIO_PINNED_VERSION})")
else()
message(STATUS " ASIO: not detected (pinned >= ${DATABASE_SYSTEM_ASIO_PINNED_VERSION})")
endif()
message(STATUS "")
message(STATUS "Optional Dependencies:")
if(USE_THREAD_SYSTEM AND thread_system_FOUND)
message(STATUS " β thread_system (Tier 1)")
else()
message(STATUS " β thread_system (Tier 1) - not loaded")
endif()
if(USE_MONITORING_SYSTEM AND monitoring_system_FOUND)
message(STATUS " β monitoring_system (Tier 3)")
else()
message(STATUS " β monitoring_system (Tier 3) - not loaded")
endif()
if(USE_CONTAINER_SYSTEM AND container_system_FOUND)
message(STATUS " β container_system (Tier 1)")
else()
message(STATUS " β container_system (Tier 1) - not loaded")
endif()
message(STATUS "")
message(STATUS "Database Features:")
message(STATUS " PostgreSQL support: ${USE_POSTGRESQL}")
message(STATUS " SQLite support: ${USE_SQLITE}")
message(STATUS " MongoDB support: ${USE_MONGODB} (experimental)")
message(STATUS " Redis support: ${USE_REDIS} (experimental)")
message(STATUS " Integrated database: ${BUILD_INTEGRATED_DATABASE}")
message(STATUS "")
message(STATUS "Build Options:")
message(STATUS " Build samples: ${BUILD_DATABASE_SAMPLES}")
message(STATUS " Build examples: ${BUILD_DATABASE_EXAMPLES}")
message(STATUS " Build tests: ${USE_UNIT_TEST}")
message(STATUS " Build integration tests: ${DATABASE_BUILD_INTEGRATION_TESTS}")
message(STATUS " Build benchmarks: ${DATABASE_BUILD_BENCHMARKS}")
message(STATUS " Code coverage: ${ENABLE_COVERAGE}")
message(STATUS "")
message(STATUS "Output Directories:")
message(STATUS " Runtime: ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
message(STATUS " Library: ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
message(STATUS " Archive: ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}")
message(STATUS "========================================")