diff --git a/CMakeLists.txt b/CMakeLists.txt index cb0248d974..2a17f512e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,7 @@ else() endif() option(AY "Build with AY ugens" ON) +option(LADSPA "Build with Ladspa ugen" ON) option(QUARKS "Install plugins as quarks") option(OSX_PACKAGE "Package dmg for Apple") option(IN_PLACE_BUILD "Build and install in cmake build folder" ON) diff --git a/README.md b/README.md index 0563d7921f..8d36d0af8d 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ ambisonics) subproject. * (default on linux `/usr/local`) * `cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..` + Install in cmake build folder instead of `CMAKE_INSTALL_PREFIX` - * (OSX ONLY, default=ON) + * (macOS ONLY, default=ON) * `cmake -DIN_PLACE_BUILD=ON` + Build the plugins as quarks * (default 'OFF') @@ -91,6 +91,9 @@ ambisonics) subproject. + Build supernova-plugins * (default 'OFF') * `cmake -DSUPERNOVA=ON ..` ++ Build Ladspa UGen + * (macOS AND LINUX ONLY, default=ON) + * `sc3-plugins/build/$ cmake -DLADSPA=ON ..` + Print all cmake options * `sc3-plugins/build/$ cmake -L ..` diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 8709638aa0..0e60a632d6 100755 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -117,7 +117,6 @@ set(PLUGIN_DIRS_EXTRA BetablockerUGens ChaosUGens DEINDUGens - LadspaUGen MembraneUGens NCAnalysisUGens OteyPianoUGens @@ -245,7 +244,8 @@ BUILD_PLUGIN(MembraneUGens "MembraneUGens/Membrane_shape.c;MembraneUGens/Membran "" "MembraneUGens") # LadspaUGen -if(NOT WIN32) +if(LADSPA AND NOT WIN32) + list(APPEND PLUGIN_DIRS_EXTRA LadspaUGen) BUILD_PLUGIN(LadspaUGen "LadspaUGen/LadspaUGen.cpp;LadspaUGen/search.c" "${CMAKE_DL_LIBS}" "LadspaUGen") add_executable(ladspalist LadspaUGen/ladspalist.c LadspaUGen/search.c) target_link_libraries(ladspalist "${CMAKE_DL_LIBS}") @@ -359,7 +359,7 @@ if (NOT APPLE) DESTINATION ${INSTALL_DESTINATION}) endif() -if(NOT WIN32) +if(LADSPA AND NOT WIN32) install(TARGETS ladspalist DESTINATION ${INSTALL_DESTINATION_LADSPALIST}) endif()