File: CMakeLists.txt

package info (click to toggle)
iem-plugin-suite 1.15.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,080 kB
  • sloc: cpp: 58,973; python: 269; sh: 79; makefile: 41
file content (85 lines) | stat: -rw-r--r-- 2,664 bytes parent folder | download
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
set (PLUGIN_TARGET "")

if (IEM_FORMATS)
    juce_add_plugin (SimpleDecoder
        PLUGIN_MANUFACTURER_CODE IEMA
        PLUGIN_CODE SiDe
        ICON_BIG "../resources/Standalone/IEMPluginSuiteSmall.png"
        ICON_SMALL "../resources/Standalone/IEMPluginSuiteSmall.png"
        COMPANY_NAME "IEM"
        PRODUCT_NAME "SimpleDecoder"
        FORMATS ${IEM_FORMATS}
        VERSION ${SimpleDecoder_VERSION}
        LV2URI "http://plugins.iem.at/SimpleDecoder"
        VST2_CATEGORY kPlugSurroundFx kPlugCategSpacializer
        VST3_CATEGORIES Spatial Surround Up-Downmix
        AAX_CATEGORY SoundField)

    list (APPEND PLUGIN_TARGET SimpleDecoder)
endif()

juce_add_binary_data (SimpleDecoderPresets
    HEADER_NAME "Presets.h"
    NAMESPACE Presets
    SOURCES
    Source/Presets/5point1.json
    Source/Presets/5point1point4.json
    Source/Presets/7point1.json
    Source/Presets/7point1point4.json
    Source/Presets/22_2_NHK.json
    Source/Presets/Cube_8ch.json
    Source/Presets/CUBE.json
    Source/Presets/MSDecoder.json
    Source/Presets/Produktionsstudio.json
    Source/Presets/Quadraphonic.json
    Source/Presets/t_design_12ch.json
    Source/Presets/t_design_24ch.json
    Source/Presets/t_design_36ch.json
    Source/Presets/t_design_48ch.json
    Source/Presets/t_design_60ch.json)

foreach (TARGET IN LISTS PLUGIN_TARGET)
    juce_generate_juce_header(${TARGET})

    target_sources(${TARGET} PRIVATE
        Source/PluginEditor.cpp
        Source/PluginEditor.h
        Source/PluginProcessor.cpp
        Source/PluginProcessor.h
        Source/DecoderInfoBox.h

        ../resources/OSC/OSCInputStream.h
        ../resources/OSC/OSCParameterInterface.cpp
        ../resources/OSC/OSCParameterInterface.h
        ../resources/OSC/OSCStatus.cpp
        ../resources/OSC/OSCStatus.h
        ../resources/OSC/OSCUtilities.h

        ../resources/efficientSHvanilla.cpp
        )

    target_compile_definitions(${TARGET} PRIVATE
        JUCE_USE_CURL=0
        JUCE_WEB_BROWSER=0
        JUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP=1
        JUCE_USE_FLAC=0
        JUCE_USE_OGGVORBIS=0
        JUCE_USE_MP3AUDIOFORMAT=0
        JUCE_USE_LAME_AUDIO_FORMAT=0
        JUCE_USE_WINDOWS_MEDIA_FORMAT=0
        JUCE_VST3_CAN_REPLACE_VST2=0)

    target_include_directories(${TARGET} PRIVATE Source)

    target_link_libraries(${TARGET} PRIVATE
        LAF_fonts
        IEM_logo
        SimpleDecoderPresets
        juce::juce_audio_utils
        juce::juce_audio_plugin_client
        juce::juce_osc
        juce::juce_dsp
        juce::juce_opengl
        juce::juce_recommended_config_flags
        juce::juce_recommended_lto_flags)
endforeach()