CMakeLists.txt 1.06 KB
Newer Older
1
add_library(VolumePlugin MODULE VolumePlugin.cpp )
2
target_link_libraries(VolumePlugin PUBLIC  APAL)
3

4
if(APAL_LADSPA_SUPPORT)
5
    target_link_libraries(VolumePlugin PUBLIC  ladspa)
6
7
endif(APAL_LADSPA_SUPPORT)
if(APAL_VST2_SUPPORT)
8
   target_link_libraries(VolumePlugin PUBLIC  vst2)
9
endif(APAL_VST2_SUPPORT)
10

11
if(APAL_VST3_SUPPORT)
12
    target_link_libraries(VolumePlugin PUBLIC  vst3)
13
endif(APAL_VST3_SUPPORT)
14

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

20
21
22
if(APAL_BUILD_TESTS)
    include(APAL)
    if(APAL_VST2_SUPPORT)
23
        RUN_VST2_TEST(VolumePlugin)
24
25
    endif(APAL_VST2_SUPPORT)
    if(APAL_VST3_SUPPORT)
26
        RUN_VST3_TEST(VolumePlugin)
27
28
    endif(APAL_VST3_SUPPORT)
    if(APAL_LADSPA_SUPPORT)
29
        RUN_LADSPA_TESTS(VolumePlugin)
30
31
    endif(APAL_LADSPA_SUPPORT)
    if(APAL_LV2_SUPPORT)
32
        RUN_LV2_TESTS(VolumePlugin)
33
34
    endif(APAL_LV2_SUPPORT)
endif(APAL_BUILD_TESTS)