Skip to content

Commit

Permalink
Try another new approach to include JuceLibraryCode/ - include JuceLi…
Browse files Browse the repository at this point in the history
…braryCode/ files as source
  • Loading branch information
austrianAudioJV committed Oct 23, 2023
1 parent 3cd634d commit 42482ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ target_compile_features(SharedCode INTERFACE cxx_std_20)
# Just ensure you employ CONFIGURE_DEPENDS so the build system picks up changes
# If you want to appease the CMake gods and avoid globs, manually add files like so:
# set(SourceFiles Source/PluginEditor.h Source/PluginProcessor.h Source/PluginEditor.cpp Source/PluginProcessor.cpp)
file(GLOB_RECURSE SourceFiles CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/source/*.h")
file(GLOB_RECURSE SourceFiles CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/source/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/JuceLibraryCode/*.h")
target_sources(SharedCode INTERFACE ${SourceFiles})

# Adds a BinaryData target for embedding assets into the binary
Expand Down Expand Up @@ -152,9 +152,6 @@ add_custom_target(host_header DEPENDS
# Link the JUCE plugin targets our SharedCode target
target_link_libraries("${PROJECT_NAME}" PRIVATE SharedCode)

# !J! Not sure if this is the right approach to take
include(JuceLibraryCode)

# IPP support, comment out to disable
include(PamplejuceIPP)

Expand Down

0 comments on commit 42482ec

Please sign in to comment.