From 4aaa9076409834c307016a3374f5e8d798e92bff Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Tue, 12 Dec 2023 18:34:38 -0500 Subject: Add DRED/OSCE only conditionally --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9827fea8..6f8fcb65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -369,8 +369,6 @@ endif() add_sources_group(opus silk ${silk_headers} ${silk_sources}) add_sources_group(opus celt ${celt_headers} ${celt_sources}) add_sources_group(opus lpcnet ${deep_plc_headers} ${deep_plc_sources}) -add_sources_group(opus lpcnet ${dred_headers} ${dred_sources}) -add_sources_group(opus lpcnet ${osce_headers} ${osce_sources}) if(OPUS_FIXED_POINT) add_sources_group(opus silk ${silk_sources_fixed}) @@ -386,6 +384,7 @@ if(NOT OPUS_ENABLE_FLOAT_API) endif() if (OPUS_DRED) + add_sources_group(opus lpcnet ${dred_headers} ${dred_sources}) target_compile_definitions(opus PRIVATE ENABLE_DRED) if(NOT OPUS_DEEP_PLC) target_compile_definitions(opus PRIVATE ENABLE_DEEP_PLC) @@ -393,6 +392,7 @@ if (OPUS_DRED) endif() if (OPUS_OSCE) + add_sources_group(opus lpcnet ${osce_headers} ${osce_sources}) target_compile_definitions(opus PRIVATE ENABLE_OSCE) if(NOT OPUS_DEEP_PLC) target_compile_definitions(opus PRIVATE ENABLE_DEEP_PLC) -- cgit v1.2.3