cmake : add variable to skip installing tests (#19370)
When packaging downstream, there's usually little point in installing test. The default behaviour remains the same.
macOS/iOS:
- macOS Apple Silicon (arm64)
- [macOS Intel (x64)](https://github.com/ggml-org/llam...