CMakeLists.txt 1.08 KB
Newer Older
Benjamin Heisch's avatar
Benjamin Heisch committed
1
add_library(MidiForwarder MODULE MidiForwarder.cpp )
2
target_link_libraries(MidiForwarder PUBLIC  APAL)
Benjamin Heisch's avatar
Benjamin Heisch committed
3

4
if(APAL_LADSPA_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
5
    target_link_libraries(MidiForwarder PUBLIC  ladspa)
6
7
endif(APAL_LADSPA_SUPPORT)
if(APAL_VST2_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
8
   target_link_libraries(MidiForwarder PUBLIC  vst2)
9
endif(APAL_VST2_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
10

11
if(APAL_VST3_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
12
    target_link_libraries(MidiForwarder PUBLIC  vst3)
13
endif(APAL_VST3_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
14

15
if(APAL_LV2_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
16
    target_link_libraries(MidiForwarder PUBLIC  lv2)
Benjamin's avatar
Benjamin committed
17
    add_custom_command(TARGET MidiForwarder  POST_BUILD COMMAND TTLGenerator ARGS $<TARGET_FILE:MidiForwarder> BYPRODUCTS manifest.ttl MidiForwarder.ttl )
18
endif(APAL_LV2_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
19

20
21
22
if(APAL_BUILD_TESTS)
    include(APAL)
    if(APAL_VST2_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
23
        RUN_VST2_TEST(MidiForwarder)
24
25
    endif(APAL_VST2_SUPPORT)
    if(APAL_VST3_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
26
        RUN_VST3_TEST(MidiForwarder)
27
28
    endif(APAL_VST3_SUPPORT)
    if(APAL_LADSPA_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
29
        RUN_LADSPA_TESTS(MidiForwarder)
30
31
    endif(APAL_LADSPA_SUPPORT)
    if(APAL_LV2_SUPPORT)
Benjamin Heisch's avatar
Benjamin Heisch committed
32
        RUN_LV2_TESTS(MidiForwarder)
33
34
    endif(APAL_LV2_SUPPORT)
endif(APAL_BUILD_TESTS)