aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-08 10:52:20 +0200
committerOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-08 10:52:20 +0200
commit2ebcae816b0124bcb47d261e8182b6b6d3647b9c (patch)
tree78f7c6896d332a874ad9ff719d751e5c07a2716d
parenta03e7e775a9751f87efb8fd7acf226b5eb25f4e3 (diff)
downloadqmenumodel-2ebcae816b0124bcb47d261e8182b6b6d3647b9c.tar.gz
qmenumodel-2ebcae816b0124bcb47d261e8182b6b6d3647b9c.tar.bz2
qmenumodel-2ebcae816b0124bcb47d261e8182b6b6d3647b9c.zip
Make libqmenumodel a shared library.
-rw-r--r--.bzrignore2
-rw-r--r--libqmenumodel/src/CMakeLists.txt8
2 files changed, 8 insertions, 2 deletions
diff --git a/.bzrignore b/.bzrignore
index 13a6812..46cf366 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -6,6 +6,8 @@ Testing/
cmake_install.cmake
install_manifest.txt
+libqmenumodel/src/libqmenumodel.so*
+
moc_*.cpp
*_automoc.cpp
diff --git a/libqmenumodel/src/CMakeLists.txt b/libqmenumodel/src/CMakeLists.txt
index 373d11b..af08b1f 100644
--- a/libqmenumodel/src/CMakeLists.txt
+++ b/libqmenumodel/src/CMakeLists.txt
@@ -10,11 +10,15 @@ set(QMENUMODEL_SRC
qstateaction.cpp
)
-add_library(qmenumodel STATIC
+add_library(qmenumodel SHARED
${QMENUMODEL_SRC}
)
-set_target_properties(qmenumodel PROPERTIES COMPILE_FLAGS -fPIC)
+set_target_properties(qmenumodel PROPERTIES
+ COMPILE_FLAGS -fPIC
+ SOVERSION 0
+ VERSION 0.1.1
+)
include_directories(
${GLIB_INCLUDE_DIRS}