This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
CMakeLists.txt
65 lines (56 loc) · 2.08 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
cmake_minimum_required(VERSION 3.13.0)
project("SignalGenerator" VERSION ${version})
set(${PROJECT_NAME}_sources
Source/PluginProcessor.cpp
Source/PluginProcessor.h)
# add the plugin targets
juce_add_plugin(${PROJECT_NAME}
VERSION "${version}"
COMPANY_NAME "Foleys Finest Audio"
PLUGIN_MANUFACTURER_CODE "FFAU"
PLUGIN_CODE "PgmG"
IS_SYNTH yes
FORMATS ${FORMATS}
VST3_CATEGORIES "Fx" "Analyser" "EQ"
AAX_CATEGORY "AAX_ePlugInCategory_SWGenerators"
AU_MAIN_TYPE "kAudioUnitType_Generator"
COMPANY_WEBSITE "https://foleysfinest.com"
COMPANY_EMAIL "info@foleysfinest.com"
BUNDLE_ID "com.foleysfinest.SignalGenerator"
PLUGIN_NAME "PGM-SignalGenerator"
PRODUCT_NAME "PGM-SignalGenerator")
juce_add_binary_data(${PROJECT_NAME}_data
SOURCES
Resources/magic.xml)
juce_generate_juce_header (${PROJECT_NAME})
target_sources(${PROJECT_NAME}
PRIVATE
${${PROJECT_NAME}_sources})
# add required flags
target_link_libraries(${PROJECT_NAME}
PRIVATE
${project_sources}
${PROJECT_NAME}_data
foleys_gui_magic
juce::juce_audio_basics
juce::juce_audio_plugin_client
juce::juce_audio_processors
juce::juce_audio_utils
juce::juce_dsp
juce::juce_cryptography
juce::juce_gui_extra
juce::juce_opengl
juce::juce_recommended_warning_flags
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags)
target_compile_definitions(${PROJECT_NAME}
PUBLIC
# switch the following off in the product to hide editor
FOLEYS_SHOW_GUI_EDITOR_PALLETTE=1
FOLEYS_SAVE_EDITED_GUI_IN_PLUGIN_STATE=0
JUCE_VST3_CAN_REPLACE_VST2=0
JUCE_WEB_BROWSER=0)
foreach(FORMAT ${FORMATS})
get_target_property(ARTEFACTS_DIR ${PROJECT_NAME}_${FORMAT} LIBRARY_OUTPUT_DIRECTORY)
add_custom_command(TARGET ${PROJECT_NAME}_${FORMAT} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${ARTEFACTS_DIR} ${COPY_FOLDER})
endforeach()