Skip to content

Commit

Permalink
Add CMake target for snex_playground
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Nov 2, 2023
1 parent 40fae3a commit c279634
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -72,4 +72,5 @@ juce_add_binary_data(HISE_BinaryData
add_subdirectory(projects/plugin)
add_subdirectory(projects/standalone)

add_subdirectory(tools/hlac_tool)
add_subdirectory(tools/hlac_tool)
add_subdirectory(tools/snex_playground)
69 changes: 69 additions & 0 deletions tools/snex_playground/CMakeLists.txt
@@ -0,0 +1,69 @@
cmake_minimum_required(VERSION 3.15)
project(snex_playground VERSION ${CMAKE_PROJECT_VERSION})

juce_add_gui_app(snex_playground
PRODUCT_NAME "snex_playground"
BUNDLE_ID "com.hise.snex_playground"
HARDENED_RUNTIME_ENABLED ON
NEEDS_WEB_BROWSER ON
NEEDS_CURL ON
)

juce_generate_juce_header(snex_playground)
hise_generate_appconfig_stub(snex_playground)

target_sources(snex_playground
PRIVATE
Source/Main.cpp
Source/MainComponent.cpp
)

target_compile_definitions(snex_playground
PRIVATE
SNEX_STANDALONE_PLAYGROUND=1

HI_EXPORT_DSP_LIBRARY=0

HISE_INCLUDE_RLOTTIE=0
HISE_INCLUDE_SNEX=1

JUCE_APPLICATION_NAME_STRING="$<TARGET_PROPERTY:snex_playground,JUCE_PRODUCT_NAME>"
JUCE_APPLICATION_VERSION_STRING="$<TARGET_PROPERTY:snex_playground,JUCE_VERSION>"
JUCE_DISABLE_JUCE_VERSION_PRINTING=1
JUCE_DISPLAY_SPLASH_SCREEN=0
JUCE_REPORT_APP_USAGE=0
JUCE_ASIO=1
)

target_include_directories(snex_playground
PRIVATE
${CMAKE_SOURCE_DIR}/tools/SDK/ASIOSDK2.3/common
)

target_link_libraries(snex_playground
PRIVATE
juce::juce_audio_utils
juce::juce_cryptography
juce::juce_dsp
juce::juce_gui_extra
juce::juce_opengl
juce::juce_osc
juce::juce_product_unlocking

hise::hi_dsp_library
hise::hi_lac
hise::hi_rlottie
hise::hi_snex
hise::hi_tools
hise::hi_zstd

PUBLIC
HISE_BinaryData

juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
# juce::juce_recommended_warning_flags

hise::compiler_options
hise::compiler_warnings
)

0 comments on commit c279634

Please sign in to comment.