This repository was archived by the owner on Apr 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·41 lines (35 loc) · 1.66 KB
/
CMakeLists.txt
File metadata and controls
executable file
·41 lines (35 loc) · 1.66 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
cmake_minimum_required(VERSION 3.25)
project(MessageGrabbers)
set(CMAKE_CXX_STANDARD 20)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CM_Config")
file(GLOB CM_CONFIG_FILES "${CMAKE_CURRENT_SOURCE_DIR}/CM_Config/*.cmake")
foreach (CM_CONFIG_FILE ${CM_CONFIG_FILES})
include("${CM_CONFIG_FILE}")
endforeach ()
endif ()
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Include")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/Include")
endif ()
## integration: add conditional checks for Inclusions
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Include.d")
file(GLOB COND_INCLUDE_GLOB "${CMAKE_CURRENT_SOURCE_DIR}/Include.d/*")
foreach (COND_INCLUDE_ENTRY ${COND_INCLUDE_GLOB})
get_filename_component(COND_INCLUDE_ENTRY_NAME "${COND_INCLUDE_ENTRY}" NAME_WE)
if (DEFINED "${COND_INCLUDE_ENTRY_NAME}")
include_directories("${COND_INCLUDE_ENTRY}")
message(STATUS "Sourced up conditional include directory for ${COND_INCLUDE_ENTRY_NAME}")
endif ()
endforeach ()
endif ()
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Sources")
file(GLOB Private_CM_CONFIG_Modules "${CMAKE_CURRENT_SOURCE_DIR}/Sources/*")
foreach (Private_CM_CONFIG_Module ${Private_CM_CONFIG_Modules})
if (EXISTS "${Private_CM_CONFIG_Module}/SourceInfo.cmake")
set(PROJECT_MODULE_ROOT "${Private_CM_CONFIG_Module}")
include("${PROJECT_MODULE_ROOT}/SourceInfo.cmake")
message(STATUS "Project Index successful: ${PROJECT_MODULE_ROOT}")
endif ()
endforeach ()
else ()
message(FATAL_ERROR "The directory for sources not found. Make sure that the directory exists, and that at least one module is present.")
endif ()