aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libqmenumodel/src/CMakeLists.txt')
-rw-r--r--libqmenumodel/src/CMakeLists.txt46
1 files changed, 46 insertions, 0 deletions
diff --git a/libqmenumodel/src/CMakeLists.txt b/libqmenumodel/src/CMakeLists.txt
new file mode 100644
index 0000000..17d11f1
--- /dev/null
+++ b/libqmenumodel/src/CMakeLists.txt
@@ -0,0 +1,46 @@
+project(src)
+
+set(QMENUMODEL_SRC
+ converter.cpp
+ qmenumodel.cpp
+ qdbusobject.cpp
+ qdbusmenumodel.cpp
+ qdbusactiongroup.cpp
+ qstateaction.cpp
+)
+
+set(QMENUMODEL_HEADERS
+ converter.h
+ dbus-enums.h
+ qmenumodel.h
+ qdbusobject.h
+ qdbusmenumodel.h
+ qdbusactiongroup.h
+ qstateaction.h
+)
+
+qt4_wrap_cpp(QMENUMODEL_MOC
+ ${QMENUMODEL_HEADERS}
+)
+
+add_library(qmenumodel STATIC
+ ${QMENUMODEL_SRC}
+ ${QMENUMODEL_MOC}
+)
+
+set_target_properties(qmenumodel PROPERTIES COMPILE_FLAGS -fPIC)
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${QT_INCLUDE_DIR}
+ ${QT_QTCORE_INCLUDE_DIR}
+ ${QT_QTGUI_INCLUDE_DIR}
+ ${GLIB_INCLUDE_DIRS}
+ ${GIO_INCLUDE_DIRS}
+)
+
+target_link_libraries(qmenumodel
+ ${QT_QTCORE_LIBRARY}
+ ${GLIB_LDFLAGS}
+ ${GIO_LDFLAGS}
+)