@@ -4,7 +4,7 @@ project("MatchingCompressor")
44include (FetchContent )
55
66# Fetch JUCE
7- set (JUCE_VERSION "8.0.1 " )
7+ set (JUCE_VERSION "8.0.4 " )
88FetchContent_Declare (
99 JUCE
1010 GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
@@ -46,8 +46,13 @@ juce_add_plugin(MatchingCompressor
4646 COMPANY_NAME "Just1m0reApp"
4747 COMPANY_WEBSITE "https://github.com/justonem0reuser"
4848
49+ PLUGIN_MANUFACTURER_CODE Jmor
50+ PLUGIN_CODE Mtcp
51+
4952 FORMATS ${JUCE_PLUGIN_FORMATS}
5053
54+ AU_MAIN_TYPE kAudioUnitType_Effect
55+
5156 VST3_CATEGORIES
5257 "Analyzer"
5358 "Dynamics"
@@ -163,17 +168,36 @@ target_link_libraries(MatchingCompressor
163168 juce::juce_recommended_warning_flags
164169)
165170
166- # This allows to add additional steps after building:
167- # for example, to copy the plugin to the common VST3 directory
168- # and run a DAW app.
169-
170- set (POST_BUILD_SCRIPT "${CMAKE_CURRENT_LIST_DIR} /post_build_plugin.cmake" )
171-
172- if (EXISTS "${POST_BUILD_SCRIPT} " )
173- add_custom_command (TARGET MatchingCompressor_VST3 POST_BUILD
174- COMMAND ${CMAKE_COMMAND}
175- -DPLUGIN_PATH= "$<TARGET_FILE :MatchingCompressor_VST3 >"
176- -DPOST_BUILD_SCRIPT= "${POST_BUILD_SCRIPT} "
177- -P "${POST_BUILD_SCRIPT} "
178- )
171+ # Installation targets
172+ # Usage: cmake --install build
173+
174+ if (APPLE )
175+ install (CODE "
176+ file(INSTALL
177+ DESTINATION \"\$ ENV{HOME}/Library/Audio/Plug-Ins/Components\"
178+ TYPE DIRECTORY
179+ FILES \" ${CMAKE_BINARY_DIR} /MatchingCompressor_artefacts/\$ <CONFIG>/AU/MatchingCompressor.component\"
180+ )
181+ file(INSTALL
182+ DESTINATION \"\$ ENV{HOME}/Library/Audio/Plug-Ins/VST3\"
183+ TYPE DIRECTORY
184+ FILES \" ${CMAKE_BINARY_DIR} /MatchingCompressor_artefacts/\$ <CONFIG>/VST3/MatchingCompressor.vst3\"
185+ )
186+ " )
187+ elseif (UNIX )
188+ install (CODE "
189+ file(INSTALL
190+ DESTINATION \"\$ ENV{HOME}/.vst3\"
191+ TYPE DIRECTORY
192+ FILES \" ${CMAKE_BINARY_DIR} /MatchingCompressor_artefacts/\$ <CONFIG>/VST3/MatchingCompressor.vst3\"
193+ )
194+ " )
195+ elseif (WIN32 )
196+ install (CODE "
197+ file(INSTALL
198+ DESTINATION \"\$ ENV{PROGRAMFILES}/Common Files/VST3\"
199+ TYPE DIRECTORY
200+ FILES \" ${CMAKE_BINARY_DIR} /MatchingCompressor_artefacts/\$ <CONFIG>/VST3/MatchingCompressor.vst3\"
201+ )
202+ " )
179203endif ()
0 commit comments