aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ac46cf4c..976f069e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -161,6 +161,7 @@ option(WITH_SPEEX "Support the Speex codec" OFF)
option(WITH_OPUS "Support the Opus codec" OFF)
option(WITH_THEORA "Support the Theora codec" OFF)
option(WITH_VPX "Support the VPX codec" OFF)
+option(BUILD_SHARED "Build SHARED library" ON)
if(WITH_SPEEX)
find_package(Speex REQUIRED)
@@ -187,7 +188,11 @@ if(WITH_VPX)
add_definitions(-DQXMPP_USE_VPX)
endif()
-add_library(qxmpp SHARED ${SOURCE_FILES})
+if(BUILD_SHARED)
+ add_library(qxmpp SHARED ${SOURCE_FILES})
+else()
+ add_library(qxmpp STATIC ${SOURCE_FILES})
+endif()
set_target_properties(qxmpp PROPERTIES
VERSION ${VERSION_STRING}