build: extract CMake plugin/harness modules and add platform build scripts

Split CMakeLists.txt into cmake/Plugin.cmake (production formats and
MinGW link flags) and cmake/Harness.cmake (console test harness with
CTest registration). Add SERUMALT_BUILD_PLUGIN and SERUMALT_BUILD_TESTS
options so production and harness builds are mutually exclusive and
each omits the other's targets.

Add build_linux.sh, build_macos.sh, and build_harness.sh with host
validation, env-overridable build dirs, and explicit option flags.
Rewrite build_windows.sh to use the checked-in mingw64-toolchain.cmake
instead of regenerating it, validate all required tools, and stage
with cmake -E copy_directory.

Broaden .gitignore to cover all build_*/ directories.
This commit is contained in:
2026-09-09 13:24:09 +02:00
parent a1feeb76f0
commit f10409ad1e
8 changed files with 260 additions and 118 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# CMake build directories
/build/
/build_windows/
/build_*/
/cmake-build-*/
# Windows output staging