aboutsummaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
diff options
context:
space:
mode:
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>2017-09-04 15:06:38 +0200
committerNiels Ole Salscheider <niels_ole@salscheider-online.de>2017-09-04 20:34:53 +0200
commit8e0415d0bacbce3fc6d7b66304936d578d52b214 (patch)
treefd1e276c3e839e6d9734b96c0e4f08e6963334f2 /examples/CMakeLists.txt
parent638deefa227d89d4d4d803c2f0f66e2ca7bc3777 (diff)
downloadqxmpp-8e0415d0bacbce3fc6d7b66304936d578d52b214.tar.gz
Port examples to the new build system
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r--examples/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 00000000..0d026cff
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,20 @@
+macro(add_simple_example EXAMPLE_NAME)
+ add_executable(${EXAMPLE_NAME} example_${EXAMPLE_NAME}/example_${EXAMPLE_NAME}.cpp)
+ target_link_libraries(${EXAMPLE_NAME} qxmpp)
+endmacro()
+
+include_directories(../src/base)
+include_directories(../src/client)
+include_directories(../src/server)
+
+add_simple_example(0_connected)
+add_simple_example(1_echoClient)
+add_simple_example(2_rosterHandling)
+add_simple_example(3_transferHandling)
+add_simple_example(7_archiveHandling)
+add_simple_example(8_server)
+
+add_subdirectory(example_5_rpcInterface)
+add_subdirectory(example_6_rpcClient)
+add_subdirectory(example_9_vCard)
+