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.
8 lines
423 B
CMake
8 lines
423 B
CMake
# ---------------------------------------------------------------------------
|
|
# Headless QA harness (console app that drives the processor and checks output)
|
|
# ---------------------------------------------------------------------------
|
|
juce_add_console_app(SerumAltTest)
|
|
serumalt_configure_target(SerumAltTest)
|
|
target_sources(SerumAltTest PRIVATE Source/Tests/TestMain.cpp)
|
|
add_test(NAME SerumAltTest COMMAND SerumAltTest)
|