File TKOS-CMakeLists.patch of Package TheKissOfShame
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9d69e4f..9eb0b69 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,8 +7,8 @@ set(PluginName "The Kiss Of Shame")
set(ProjectVersion 1.0.2)
-include (FetchContent)
-Set(FETCHCONTENT_QUIET FALSE) # shows detailed info when fetching from github
+# include (FetchContent)
+# Set(FETCHCONTENT_QUIET FALSE) # shows detailed info when fetching from github
# attempt to build with multiple threads
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
@@ -28,15 +28,16 @@ endif()
-FetchContent_Declare(
- JUCE
- GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
- GIT_TAG 7.0.11
- GIT_PROGRESS TRUE
- GIT_SHALLOW 1
-)
+# FetchContent_Declare(
+# JUCE
+# GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
+# GIT_TAG 7.0.11
+# GIT_PROGRESS TRUE
+# GIT_SHALLOW 1
+# )
-FetchContent_MakeAvailable(JUCE)
+# FetchContent_MakeAvailable(JUCE)
+find_package(JUCE CONFIG REQUIRED)
juce_add_plugin("${BaseTargetName}"
@@ -51,7 +52,7 @@ juce_add_plugin("${BaseTargetName}"
NEEDS_MIDI_OUTPUT FALSE # Does the plugin need midi output?
IS_MIDI_EFFECT FALSE # Is this plugin a MIDI effect?
- COPY_PLUGIN_AFTER_BUILD TRUE # Should the plugin be installed to a default location after building? (will install into sensible locations for most platforms)
+ COPY_PLUGIN_AFTER_BUILD FALSE # Should the plugin be installed to a default location after building? (will install into sensible locations for most platforms)
# VST3_COPY_DIR ""
# AU_COPY_DIR ""
# AAX_COPY_DIR ""
@@ -59,7 +60,8 @@ juce_add_plugin("${BaseTargetName}"
PLUGIN_MANUFACTURER_CODE ILov # A four-character manufacturer id with at least one upper-case character
PLUGIN_CODE Tkos # A unique four-character plugin id with exactly one upper-case character
# GarageBand 10.3 requires the first letter to be upper-case, and the remaining letters to be lower-case
- FORMATS VST3 Standalone AU # The formats to build. Other valid formats are: AAX Unity VST AU AUv3. Enable AAX once you have the AAX SDK installed
+ FORMATS VST3 LV2 VST Standalone AU # The formats to build. Other valid formats are: AAX Unity VST AU AUv3. Enable AAX once you have the AAX SDK installed
+ LV2URI "https://github.com/hollance/TheKissOfShame"
PRODUCT_NAME "${PluginName}" # The name of the final executable, which can differ from the target name
)
@@ -77,6 +79,7 @@ target_compile_definitions("${BaseTargetName}" PUBLIC
DONT_SET_USING_JUCE_NAMESPACE=1
JUCE_DISPLAY_SPLASH_SCREEN=0
JUCE_REPORT_APP_USAGE=0
+ JUCE_JACK=1
JUCE_USE_FLAC=0
JUCE_USE_OGGVORBIS=0
JUCE_USE_MP3AUDIOFORMAT=0
@@ -155,4 +158,4 @@ target_link_libraries("${BaseTargetName}"
PUBLIC
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
- juce::juce_recommended_warning_flags)
\ No newline at end of file
+ juce::juce_recommended_warning_flags)