aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/RCCPreventInSourceBuild.cmake8
-rw-r--r--cmake/modules/RCCProjects.cmake40
2 files changed, 0 insertions, 48 deletions
diff --git a/cmake/modules/RCCPreventInSourceBuild.cmake b/cmake/modules/RCCPreventInSourceBuild.cmake
deleted file mode 100644
index 97b3392..0000000
--- a/cmake/modules/RCCPreventInSourceBuild.cmake
+++ /dev/null
@@ -1,8 +0,0 @@
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
- message(
- FATAL_ERROR
- "RCC does not support in-source builds. Configure a separate build directory."
- )
-endif()
diff --git a/cmake/modules/RCCProjects.cmake b/cmake/modules/RCCProjects.cmake
deleted file mode 100644
index 59c4fc5..0000000
--- a/cmake/modules/RCCProjects.cmake
+++ /dev/null
@@ -1,40 +0,0 @@
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-set(RCC_KNOWN_PROJECTS backend)
-set(RCC_DEFAULT_PROJECTS backend)
-
-set(
- RCC_ENABLE_PROJECTS
- "${RCC_DEFAULT_PROJECTS}"
- CACHE STRING
- "Semicolon-separated RCC projects to build, or 'all'"
-)
-
-function(rcc_add_enabled_projects RCCSourceRoot)
- if(RCC_ENABLE_PROJECTS STREQUAL "all")
- set(EnabledProjects ${RCC_KNOWN_PROJECTS})
- else()
- set(EnabledProjects ${RCC_ENABLE_PROJECTS})
- endif()
-
- if(NOT EnabledProjects)
- message(FATAL_ERROR "RCC_ENABLE_PROJECTS must name at least one project")
- endif()
-
- list(REMOVE_DUPLICATES EnabledProjects)
-
- foreach(Project IN LISTS EnabledProjects)
- if(NOT Project IN_LIST RCC_KNOWN_PROJECTS)
- message(
- FATAL_ERROR
- "Unknown RCC project '${Project}'. Known projects: ${RCC_KNOWN_PROJECTS}"
- )
- endif()
- endforeach()
-
- # Component order is controlled here rather than by the user-provided list.
- # Future inter-project dependency closure will also be resolved here.
- if("backend" IN_LIST EnabledProjects)
- add_subdirectory("${RCCSourceRoot}/backend" "${CMAKE_BINARY_DIR}/backend")
- endif()
-endfunction()