aboutsummaryrefslogtreecommitdiff
path: root/src/QMenuModel/CMakeLists.txt
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-09-05 16:15:39 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-09-05 16:15:39 -0300
commit0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425 (patch)
treea4d1d4e876e31a1265581ee89c673eb66aaaae8d /src/QMenuModel/CMakeLists.txt
downloadqmenumodel-0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425.tar.gz
qmenumodel-0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425.tar.bz2
qmenumodel-0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425.zip
Initial import.
Diffstat (limited to 'src/QMenuModel/CMakeLists.txt')
-rw-r--r--src/QMenuModel/CMakeLists.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/QMenuModel/CMakeLists.txt b/src/QMenuModel/CMakeLists.txt
new file mode 100644
index 0000000..dae9ff4
--- /dev/null
+++ b/src/QMenuModel/CMakeLists.txt
@@ -0,0 +1,43 @@
+set(QMENUMODEL_SRC
+ qmenumodel.cpp
+ qdbusmenumodel.cpp
+ plugin.cpp
+)
+
+set(QMENUMODEL_HEADERS
+ qmenumodel.h
+ qdbusmenumodel.h
+ plugin.h
+)
+
+qt4_wrap_cpp(QMENUMODEL_MOC
+ ${QMENUMODEL_HEADERS}
+)
+
+add_library(qmenumodel MODULE
+ ${QMENUMODEL_SRC}
+ ${QMENUMODEL_MOC}
+)
+
+#set_target_properties(dbusmenuqmlcommon PROPERTIES COMPILE_FLAGS -fPIC)
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${QT_INCLUDE_DIR}
+ ${QT_QTCORE_INCLUDE_DIR}
+ ${QT_QTGUI_INCLUDE_DIR}
+ ${QT_QTDECLARATIVE_INCLUDE_DIR}
+ ${GLIB_INCLUDE_DIRS}
+ ${GIO_INCLUDE_DIRS}
+)
+
+target_link_libraries(qmenumodel
+ ${QT_QTCORE_LIBRARY}
+ ${QT_QTGUI_LIBRARY}
+ ${QT_QTDCLARATIVE_LIBRARY}
+ ${GLIB_LDFLAGS}
+ ${GIO_LDFLAGS}
+)
+
+execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
+ "${CMAKE_CURRENT_BINARY_DIR}/qmldir")