Skip to content

Commit

Permalink
only build ladspa plugins if ladspa.h is found
Browse files Browse the repository at this point in the history
git-svn-id: https://sc3-plugins.svn.sourceforge.net/svnroot/sc3-plugins@459 a81c72af-a122-0410-9629-e4559562533e
  • Loading branch information
Jonatan Liljedahl committed Dec 5, 2010
1 parent e06e62d commit 5ae798b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ endforeach(plugin)
add_library(MdaUGens MODULE MdaUGens/MdaUGens.cpp)
add_library(MembraneUGens MODULE Membrane_shape.c Membrane.cpp)

add_library(LadspaUGen MODULE LadspaUGen/LadspaUGen.cpp LadspaUGen/search.c)
list(APPEND plugins LadspaUGen)
find_path(LADSPA_INCLUDE_DIR NAMES ladspa.h PATHS /usr/local/include /usr/include)
if (LADSPA_INCLUDE_DIR)
add_library(LadspaUGen MODULE LadspaUGen/LadspaUGen.cpp LadspaUGen/search.c)
list(APPEND plugins LadspaUGen)
endif()

file(GLOB MLfftwSources MLfftwUGens/*cpp)
add_library(MLfftwUGens MODULE ${MLfftwSources})
Expand Down

0 comments on commit 5ae798b

Please sign in to comment.