-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
57 lines (53 loc) · 1.6 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
cmake_minimum_required(VERSION 3.7.2)
project(Transfer VERSION 0.0.2)
include(FetchContent)
FetchContent_Declare(
JUCE
GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
GIT_TAG 7.0.5
)
FetchContent_MakeAvailable(JUCE)
#find_package(JUCE CONFIG REQUIRED)
set(CMAKE_CXX_STANDARD 20)
juce_add_plugin(Transfer
COMPANY_NAME Syl Morrison
PLUGIN_MANUFACTURER_CODE SAPI
PLUGIN_CODE SM01
FORMATS Standalone VST3 AU
PRODUCT_NAME "Transfer"
)
juce_add_module(${CMAKE_CURRENT_SOURCE_DIR}/Modules/SDSP)
#juce_add_bundle_resources_directory(AmpSim ${CMAKE_CURRENT_SOURCE_DIR}/Convolutions)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Source)
juce_generate_juce_header(Transfer)
#file(GLOB BETA_LEAD_BUNDLE_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Data/Convolutions/SunnBetaLead/*.wav)
target_sources(Transfer PUBLIC
${SOURCE}
)
target_include_directories(Transfer PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/Source
${CMAKE_CURRENT_SOURCE_DIR}/Include
${CMAKE_CURRENT_SOURCE_DIR}/Asio
${CMAKE_CURRENT_SOURCE_DIR}/Modules
)
target_compile_definitions(Transfer
PUBLIC
USE_EXPRTK=1
JUCE_WEB_BROWSER=0
JUCE_USER_CURL=0
JUCE_VST3_CAN_REPLACE_VST2=0
JUCE_MODAL_LOOPS_PERMITTED=1
)
file(GLOB BINARY_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Resources/*.*)
juce_add_binary_data(BinaryData SOURCES ${BINARY_RESOURCES})
target_link_libraries(Transfer PRIVATE
BinaryData
juce::juce_gui_basics
juce::juce_audio_basics
juce::juce_audio_utils
juce::juce_dsp
PUBLIC
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags
)