aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/CMakeLists.txt
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-10-15 09:54:06 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-10-15 09:54:06 -0300
commit5c56d1288ba905ab162246c65fffbc69a831a14e (patch)
tree5043b5daf97aa9e2bb2e87e7d5809b3a762e556e /libqmenumodel/src/CMakeLists.txt
parente243399cba32f939eccdcb55fe093b7c57f31161 (diff)
parent5999e7a42962140b6479995d77a178186b6b2fcc (diff)
downloadqmenumodel-5c56d1288ba905ab162246c65fffbc69a831a14e.tar.gz
qmenumodel-5c56d1288ba905ab162246c65fffbc69a831a14e.tar.bz2
qmenumodel-5c56d1288ba905ab162246c65fffbc69a831a14e.zip
Merged mainline.
Diffstat (limited to 'libqmenumodel/src/CMakeLists.txt')
-rw-r--r--libqmenumodel/src/CMakeLists.txt39
1 files changed, 36 insertions, 3 deletions
diff --git a/libqmenumodel/src/CMakeLists.txt b/libqmenumodel/src/CMakeLists.txt
index 373d11b..8edb3e1 100644
--- a/libqmenumodel/src/CMakeLists.txt
+++ b/libqmenumodel/src/CMakeLists.txt
@@ -10,15 +10,48 @@ set(QMENUMODEL_SRC
qstateaction.cpp
)
-add_library(qmenumodel STATIC
+set(SHAREDLIBNAME qmenumodel)
+add_library(${SHAREDLIBNAME} SHARED
${QMENUMODEL_SRC}
)
-set_target_properties(qmenumodel PROPERTIES COMPILE_FLAGS -fPIC)
+set_target_properties(${SHAREDLIBNAME} PROPERTIES
+ COMPILE_FLAGS -fPIC
+ SOVERSION 0
+ VERSION 0.1.1
+)
include_directories(
${GLIB_INCLUDE_DIRS}
+ ${GIO_INCLUDE_DIRS}
+)
+
+target_link_libraries(${SHAREDLIBNAME}
+ ${GLIB_LDFLAGS}
+ ${GIO_LDFLAGS}
)
-qt5_use_modules(qmenumodel Core Widgets)
+qt5_use_modules(${SHAREDLIBNAME} Core Widgets)
+
+install(TARGETS ${SHAREDLIBNAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+set(QMENUMODEL_HEADERS
+ dbus-enums.h
+ qdbusactiongroup.h
+ qdbusmenumodel.h
+ qdbusobject.h
+ qmenumodel.h
+ qstateaction.h
+)
+
+set(INCLUDEDIR qmenumodel)
+install(FILES ${QMENUMODEL_HEADERS}
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${INCLUDEDIR}
+)
+
+set(PCFILE qmenumodel.pc)
+configure_file(${PCFILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${PCFILE} @ONLY)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PCFILE}
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
+)