From 0c526da10b9882dcdef3808cf6da16f83262c215 Mon Sep 17 00:00:00 2001 From: jatinchowdhury18 Date: Sun, 17 Dec 2023 22:47:59 -0800 Subject: [PATCH] Update CMakeLists.txt --- src/CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 88e488a..1a12d30 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,5 +2,14 @@ target_sources(TempPlugin PRIVATE TempPlugin.cpp ) +file(GLOB_RECURSE juce_module_sources CONFIGURE_DEPENDS + ${CMAKE_CURRENT_SOURCE_DIR}/../modules/JUCE/modules/juce_*/*.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../modules/JUCE/modules/juce_*/*.mm + ${CMAKE_CURRENT_SOURCE_DIR}/../modules/JUCE/modules/chowdsp_utils/modules/*/chowdsp_*/*.cpp +) +set_source_files_properties(${juce_module_sources} + TARGET_DIRECTORY TempPlugin + PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE SKIP_UNITY_BUILD_INCLUSION TRUE +) target_precompile_headers(TempPlugin PRIVATE pch.h) - \ No newline at end of file +