aboutsummaryrefslogtreecommitdiff
path: root/tests/script
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-05 15:13:34 +0200
committerOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-05 15:13:34 +0200
commit82677d03e4ec89ea4387467bcf7caa954a5ae183 (patch)
treef47d14eb3b2c4c59fc3e44e8ad56978ecea08e0e /tests/script
parent8c515504fc8089b5ea3f18825c90cad9b1da2ad8 (diff)
downloadqmenumodel-82677d03e4ec89ea4387467bcf7caa954a5ae183.tar.gz
qmenumodel-82677d03e4ec89ea4387467bcf7caa954a5ae183.tar.bz2
qmenumodel-82677d03e4ec89ea4387467bcf7caa954a5ae183.zip
Use the automoc feature to simplify a lot the build system.
Diffstat (limited to 'tests/script')
-rw-r--r--tests/script/CMakeLists.txt30
1 files changed, 1 insertions, 29 deletions
diff --git a/tests/script/CMakeLists.txt b/tests/script/CMakeLists.txt
index bf415f5..afa073b 100644
--- a/tests/script/CMakeLists.txt
+++ b/tests/script/CMakeLists.txt
@@ -1,36 +1,8 @@
project(dbusmenuscript)
-set(DBUSMENUSCRIPT_SRC
- dbusmenuscript.cpp
-)
-
-set(DBUSMENUSCRIPT_HEADERS
- dbusmenuscript.h
-)
-
-qt5_wrap_cpp(DBUSMENUSCRIPT_MOC
- ${DBUSMENUSCRIPT_HEADERS}
-)
-
-add_library(dbusmenuscript STATIC
- ${DBUSMENUSCRIPT_SRC}
- ${DBUSMENUSCRIPT_MOC}
-)
+add_library(dbusmenuscript STATIC dbusmenuscript.cpp)
set_target_properties(dbusmenuscript PROPERTIES COMPILE_FLAGS -fPIC)
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${QT_INCLUDE_DIR}
- ${QT_QTTEST_INCLUDE_DIR}
- ${QT_QTCORE_INCLUDE_DIR}
- ${QT_QTDBUS_INCLUDE_DIR}
-)
-
qt5_use_modules(dbusmenuscript Core DBus Test)
-target_link_libraries(dbusmenuscript
- ${QT_QTCORE_LIBRARY}
- ${QT_QTTEST_LIBRARY}
- ${QT_QTDBUS_LIBRARY}
-)