CMakeLists.txt 962 Bytes
Newer Older
1
2
# Enable APAL_LV2_SUPPORT if present, othertwhise not.
# if its forced to used by specify APAL_LV2_SUPPORT to ON, VST3 package is required.
3
find_package(LV2)
4
option(APAL_LV2_SUPPORT "Support vor LV2" ${LV2_FOUND})
5

6
if(APAL_LV2_SUPPORT)
7
8
9
10
    include(symbol_export)
    find_package(LV2 REQUIRED)
    add_library(lv2  "lv2.cpp" "lv2_ttl_generation.cpp")
    set_target_properties(lv2 PROPERTIES POSITION_INDEPENDENT_CODE  True)
11
    target_link_libraries(lv2 APAL)
12
    target_include_directories(lv2 SYSTEM PRIVATE ${LV2_INCLUDE_DIRS})
13
14
15
    target_compile_features(lv2 PUBLIC cxx_std_11)
    EXPORT_SYMBOLS(lv2 FUNCTION_NAMES lv2_descriptor lv2_lib_descriptor getTTLFromPlugin getManifestFromMultpleInfos getPluginInfos)
    add_executable(TTLGenerator  "TtlGenerator.cpp")
16
17
    target_link_libraries(TTLGenerator APAL)
    install(TARGETS lv2 EXPORT APALExport DESTINATION lib)
18
    add_subdirectory(tests)
19
   # add_executable(tt  "turtle.cpp")
20
endif(APAL_LV2_SUPPORT)