@@ -218,6 +218,8 @@ else ()
218218 option (KFR_ENABLE_DFT "Enable DFT and related algorithms." OFF )
219219endif ()
220220option (KFR_ENABLE_ASMTEST "Enable writing disassembly" OFF )
221+ option (KFR_ENABLE_AUDIO "Enable Audio classes" ON )
222+ option (KFR_ENABLE_IO "Enable IO classes" ON )
221223option (KFR_REGENERATE_TESTS "Regenerate auto tests" OFF )
222224option (KFR_DISABLE_CLANG_EXTENSIONS "Disable Clang vector extensions" OFF )
223225option (KFR_EXTENDED_TESTS "Extended tests (up to hour)" OFF )
@@ -441,8 +443,12 @@ set(KFR_DEBUG_INSTALL_SUFFIX
441443 CACHE STRING "" )
442444
443445add_subdirectory (src/dsp )
444- add_subdirectory (src/io )
445- add_subdirectory (src/audio )
446+ if (KFR_ENABLE_IO)
447+ add_subdirectory (src/io )
448+ if (KFR_ENABLE_AUDIO)
449+ add_subdirectory (src/audio )
450+ endif ()
451+ endif ()
446452if (KFR_ENABLE_DFT)
447453 add_subdirectory (src/dft )
448454endif ()
@@ -474,9 +480,15 @@ append_defines_from(kfr)
474480if (KFR_ENABLE_DFT)
475481 append_defines_from (kfr_dft )
476482endif ()
477- append_defines_from ( kfr_io )
483+
478484append_defines_from (kfr_dsp )
479- append_defines_from (kfr_audio )
485+
486+ if (KFR_ENABLE_IO)
487+ append_defines_from (kfr_io )
488+ if (KFR_ENABLE_AUDIO)
489+ append_defines_from (kfr_audio )
490+ endif ()
491+ endif ()
480492
481493string (REPLACE "$<BUILD_INTERFACE :" "" kfr_defines "${kfr_defines} ")
482494string (REPLACE ">" "" kfr_defines "${kfr_defines} " )
0 commit comments