Skip to content

Commit

Permalink
added CMakeLists.txt for PlayerExample
Browse files Browse the repository at this point in the history
  • Loading branch information
benthevining authored and ffAudio committed Jul 27, 2023
1 parent a113c60 commit a1e7f65
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ add_subdirectory(EqualizerExample)
add_subdirectory(ExtendingExample)
add_subdirectory(FoleysSynth)
add_subdirectory(SignalGenerator)
# add_subdirectory(PlayerExample)
add_subdirectory(PlayerExample)
49 changes: 49 additions & 0 deletions Examples/PlayerExample/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
cmake_minimum_required(VERSION 3.13.0)

project (PlayerExample VERSION ${FGM_VERSION})

juce_add_gui_app (${PROJECT_NAME}
VERSION ${PROJECT_VERSION}
COMPANY_NAME "Foleys Finest Audio"
PLUGIN_MANUFACTURER_CODE "FFAU"
COMPANY_WEBSITE "https://foleysfinest.com"
COMPANY_EMAIL "info@foleysfinest.com"
BUNDLE_ID "com.foleysfinest.FoleysSynth"
PRODUCT_NAME "PGM-PlayerExample"
NEEDS_CURL FALSE
NEEDS_WEB_BROWSER FALSE)

juce_add_binary_data(${PROJECT_NAME}_data
SOURCES
Resources/magic.xml)

juce_generate_juce_header (${PROJECT_NAME})

target_sources (${PROJECT_NAME} PRIVATE
Source/Main.cpp
Source/MainComponent.cpp
Source/MainComponent.h)

target_link_libraries(${PROJECT_NAME}
PRIVATE
${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_ENABLE_BINARY_DATA=1
FOLEYS_SHOW_GUI_EDITOR_PALLETTE=1
FOLEYS_SAVE_EDITED_GUI_IN_PLUGIN_STATE=0
JUCE_WEB_BROWSER=0)

0 comments on commit a1e7f65

Please sign in to comment.