thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 317 forks source link

Move include(CTest) to inside testing guard #413

Closed baconpaul closed 11 months ago

baconpaul commented 11 months ago

The RTAUDIO_BUILD_TESTING variable stops the testing target ejection but still does an include(CTest) which injects the standard CTest macros from enable_testing(). In rtmidi you include(CTest) inside the guard but in rtaudio you do not; as such using the cmake in a non-ctest project ejects multiple targets.

For now you can get around this with BUILD_TESTING globally off but that means you can't activate your own ctests optionally.

So move the include(CTEst) to be in the same spot as it is in rtmidi.

Thanks for great software!