Option to build a static library instead of a shared object (dll).

This commit is contained in:
Pedro Lopez-Cabanillas 2010-08-11 11:18:53 +00:00
parent 7a46d914df
commit 73cc59766b
2 changed files with 4 additions and 1 deletions

View File

@ -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 )

View File

@ -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}