CMakeLists.txt 712 Bytes
Newer Older
1
2
3
# Enable APAL_LADSPA_SUPPORT
# if its forced to not be used by specify APAL_LADSPA_SUPPORT to OFF, dont build it.
option(APAL_LADSPA_SUPPORT "Support vor LADSPA" ON)
4

5
if(APAL_LADSPA_SUPPORT)
6
    include(symbol_export)
7
    add_library(ladspa  "ladspa.cpp")
8
    set_target_properties(ladspa PROPERTIES POSITION_INDEPENDENT_CODE  True)
9
    target_link_libraries(ladspa APAL)
10
    target_compile_features(ladspa PUBLIC cxx_std_11)
11
    target_include_directories(ladspa PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../src ${PROJECT_SOURCE_DIR}/deps)
12
    EXPORT_SYMBOLS(ladspa FUNCTION_NAMES ladspa_descriptor)
13
    install(TARGETS ladspa EXPORT APALExport DESTINATION lib)
14
    add_subdirectory(tests)
15
endif(APAL_LADSPA_SUPPORT)