aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-09-19 19:31:13 +0200
committersaturneric <[email protected]>2026-09-19 19:31:13 +0200
commit57eacddc31735e080a29df37c4592ea99a35223b (patch)
treea056f353d64c4048824e5facf21afeae5f052ca7
parentstyle(formatting): reformat module source files (diff)
downloadmodules-57eacddc31735e080a29df37c4592ea99a35223b.tar.gz
modules-57eacddc31735e080a29df37c4592ea99a35223b.zip
build(cmake): organize module output directories
- document the namespace root for module artifacts - place runtime, library, and archive outputs under modules - defer per-target paths to gf_add_module() based on signed identity
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 863b04c..ade1db4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,10 @@ link_directories(
${SDK_LIB_PATH}
)
+# The namespace root. Each module's own output directory is set per target by
+# gf_add_module(), to modules/<key>/native, because the directory a module owns
+# is derived from the identity it signs rather than from where it sits in the
+# source tree.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/modules)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/modules)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/modules)