From 73cc59766b1ad33468337f46bc5330138833a01d Mon Sep 17 00:00:00 2001 From: Pedro Lopez-Cabanillas Date: Wed, 11 Aug 2010 11:18:53 +0000 Subject: [PATCH] Option to build a static library instead of a shared object (dll). --- fluidsynth/CMakeLists.txt | 1 + fluidsynth/src/CMakeLists.txt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fluidsynth/CMakeLists.txt b/fluidsynth/CMakeLists.txt index 525a5a0e..fdac429c 100644 --- a/fluidsynth/CMakeLists.txt +++ b/fluidsynth/CMakeLists.txt @@ -70,6 +70,7 @@ option ( enable-dart "compile DART support (if it is available)" on ) option ( enable-readline "compile readline lib line editing (if it is available)" on ) option ( enable-lash "compile LASH support (if it is available)" on ) option ( enable-dbus "compile DBUS support (if it is available)" on ) +option ( BUILD_SHARED_LIBS "Build a shared object or DLL" on ) # Initialize the library directory name suffix. if ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) diff --git a/fluidsynth/src/CMakeLists.txt b/fluidsynth/src/CMakeLists.txt index d796f769..448811b5 100644 --- a/fluidsynth/src/CMakeLists.txt +++ b/fluidsynth/src/CMakeLists.txt @@ -196,7 +196,9 @@ link_directories ( ${DBUS_LIBRARY_DIRS} ) -add_library ( libfluidsynth SHARED +# note: by default this target creates a shared object (or dll). To build a +# static library instead, set the option BUILD_SHARED_LIBS to FALSE. +add_library ( libfluidsynth ${fluid_alsa_SOURCES} ${fluid_coreaudio_SOURCES} ${fluid_coremidi_SOURCES}