forked from christophhart/HISE
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CMake target for snex_playground
- Loading branch information
1 parent
40fae3a
commit c279634
Showing
2 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
) |