diff options
| author | saturneric <[email protected]> | 2026-09-19 19:31:13 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-09-19 19:31:13 +0200 |
| commit | 57eacddc31735e080a29df37c4592ea99a35223b (patch) | |
| tree | a056f353d64c4048824e5facf21afeae5f052ca7 | |
| parent | style(formatting): reformat module source files (diff) | |
| download | modules-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.txt | 4 |
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) |
