aboutsummaryrefslogtreecommitdiff
path: root/libsupport/CMakeLists.txt
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-11-01 02:12:34 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-11-01 02:12:34 +0800
commit02b615c8704aeda9a94cf5457c9c78de847c911a (patch)
tree3257dd23e643ae732cb0abf14d62ab70b64893be /libsupport/CMakeLists.txt
parent2850abdb23a2ba4fde6268ea4191f4d062b9a01f (diff)
downloadrcc-project-master.tar.gz
rcc-project-master.tar.xz
Move support code into CoreLibHEADmaster
Diffstat (limited to 'libsupport/CMakeLists.txt')
-rw-r--r--libsupport/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/libsupport/CMakeLists.txt b/libsupport/CMakeLists.txt
new file mode 100644
index 0000000..0784f3b
--- /dev/null
+++ b/libsupport/CMakeLists.txt
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+add_rcc_library(RCCSupport
+ STATIC
+ src/corelib/math/MathExtras.cc
+ src/corelib/memory/MemAlloc.cpp
+ src/corelib/system/Errno.cc
+)
+
+target_include_directories(RCCSupport
+ PUBLIC
+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
+ "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
+
+install(DIRECTORY include/CoreLib DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")