summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Knauß <mail@sandroknauss.de>2014-05-14 14:19:12 (GMT)
committerSandro Knauß <mail@sandroknauss.de>2014-05-14 14:19:12 (GMT)
commit5c36749406fa97838216d9a82a3184e041ff22ea (patch)
tree727f9838aa0362a2292f31417ab3ffa98d490531
parentf0d2d03be308ed2354abbf2911d5a275fe2d658f (diff)
downloadlibcalendaring-5c36749406fa97838216d9a82a3184e041ff22ea.tar.gz
kimaptest: create and use moc file
-rw-r--r--kimap/tests/kimaptest/CMakeLists.txt2
-rw-r--r--kimap/tests/kimaptest/fakeserver.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/kimap/tests/kimaptest/CMakeLists.txt b/kimap/tests/kimaptest/CMakeLists.txt
index cc11183..423ce4d 100644
--- a/kimap/tests/kimaptest/CMakeLists.txt
+++ b/kimap/tests/kimaptest/CMakeLists.txt
@@ -9,6 +9,8 @@ set(kimaptest_LIB_SRCS
find_package(Qt4 4.6.0 REQUIRED)
include_directories(${QT_INCLUDES})
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+QT4_AUTOMOC("${kimaptest_LIB_SRCS}")
add_library(calendaring-kimaptest STATIC ${kimaptest_LIB_SRCS})
target_link_libraries(calendaring-kimaptest ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTTEST_LIBRARY} calendaring-kimap)
install(TARGETS calendaring-kimaptest ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/kimap/tests/kimaptest/fakeserver.cpp b/kimap/tests/kimaptest/fakeserver.cpp
index 24ce7cc..e101174 100644
--- a/kimap/tests/kimaptest/fakeserver.cpp
+++ b/kimap/tests/kimaptest/fakeserver.cpp
@@ -220,3 +220,4 @@ void FakeServer::readClientPart( int scenarioNumber )
m_scenarios[scenarioNumber] = scenario;
}
+#include "fakeserver.moc"