aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-08-14 19:44:46 +0200
committerRobert Tari <robert@tari.in>2022-08-16 18:10:24 +0200
commitbe468e9659bc275c3e35a71b847f23a2e498d3d8 (patch)
tree7de34b5879812b342e97d89e3c6171eb487ca1c4 /test
parent8963b201e55613759c59a593d3db66d3f4c12da1 (diff)
downloadayatana-indicator-printers-be468e9659bc275c3e35a71b847f23a2e498d3d8.tar.gz
ayatana-indicator-printers-be468e9659bc275c3e35a71b847f23a2e498d3d8.tar.bz2
ayatana-indicator-printers-be468e9659bc275c3e35a71b847f23a2e498d3d8.zip
Add CMakeLists.txt files
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 0000000..78d8965
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,12 @@
+# cups-notifier.h
+# cups-notifier.c
+include (GdbusCodegen)
+add_gdbus_codegen_with_namespace (CUPS_NOTIFIER cups-notifier org.cups.cupsd Cups "${CMAKE_SOURCE_DIR}/src/org.cups.cupsd.Notifier.xml")
+
+# mock-cups-notifier
+add_executable (mock-cups-notifier mock-cups-notifier.c ${CUPS_NOTIFIER})
+target_include_directories (mock-cups-notifier PUBLIC ${SERVICE_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
+target_link_libraries (mock-cups-notifier ${SERVICE_LIBRARIES})
+add_test (mock-cups-notifier mock-cups-notifier)
+
+