[Libreoffice-commits] cppunit.git: Branch 'feature/cmake' - examples/CMakeLists.txt examples/DumperPlugIn
Bernhard Sessler
bernhard.sessler at corscience.de
Sat Jan 11 08:04:54 PST 2014
examples/CMakeLists.txt | 1 +
examples/DumperPlugIn/CMakeLists.txt | 12 ++++++++++++
2 files changed, 13 insertions(+)
New commits:
commit 44ec3e03cba21acfbb44a975533547803c83ea97
Author: Bernhard Sessler <bernhard.sessler at corscience.de>
Date: Wed Jan 8 14:49:13 2014 +0100
examples/DumperPlugIn: Build dumper plugin
With this patch the cppunit dumper plugin example will be built
when CPPUNIT_BUILD_EXAMPLES is ON.
Change-Id: If5265461d01eb8b6567784b68e4d047b001d52f4
Signed-off-by: Bernhard Sessler <bernhard.sessler at corscience.de>
Reviewed-on: https://gerrit.libreoffice.org/7316
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 5bf007b..72fa78c 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,4 +1,5 @@
add_subdirectory(cppunittest)
+add_subdirectory(DumperPlugIn)
if(CPPUNIT_BUILD_QT_TESTRUNNER)
add_subdirectory(qt)
diff --git a/examples/DumperPlugIn/CMakeLists.txt b/examples/DumperPlugIn/CMakeLists.txt
new file mode 100644
index 0000000..e104e46
--- /dev/null
+++ b/examples/DumperPlugIn/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Common source files
+set(cppunit-dumper-plugin_SOURCES
+ DumperListener.cpp
+ DumperPlugIn.cpp
+)
+
+# Create the test plugin
+add_library(cppunit-dumper-plugin MODULE ${cppunit-dumper-plugin_SOURCES})
+target_link_libraries(cppunit-dumper-plugin cppunit)
+
+install(TARGETS cppunit-dumper-plugin
+ DESTINATION share/${CPPUNIT_VERSION}/examples COMPONENT examples)
More information about the Libreoffice-commits
mailing list