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 +