1 diff -ruN a/CMakeLists.txt b/CMakeLists.txt
2 --- a/CMakeLists.txt 2020-11-01 18:23:59.000000000 +0100
3 +++ b/CMakeLists.txt 2021-11-11 10:09:50.134726938 +0100
5 # I'm not sure at this point whether this has any effect. I know etting it to "Instrument" causes it to show as
6 # VSTi in reaper whereas setting it to "Effect" causes it to show as VST
7 set(STOCHAS_CATEGORY "Effect") # original was "Instrument"
8 -add_subdirectory(lib/JUCE)
9 +find_package(JUCE COMPONENTS REQUIRED)
10 +include(FindPkgConfig)
11 +pkg_search_module(flac REQUIRED flac)
12 +pkg_search_module(ogg REQUIRED ogg)
13 +pkg_search_module(vorbis REQUIRED vorbis)
14 +pkg_search_module(vorbisenc REQUIRED vorbisenc)
15 +pkg_search_module(vorbisfile REQUIRED vorbisfile)
17 add_custom_target( git-info BYPRODUCTS ${CMAKE_BINARY_DIR}/geninclude/version.cpp
18 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
20 assets # to include our images
21 juce::juce_audio_utils
22 juce::juce_audio_plugin_client
26 + ${vorbisenc_LIBRARIES}
27 + ${vorbisfile_LIBRARIES}