aboutsummaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r--examples/CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 00000000..564745c6
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,21 @@
+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(${PROJECT_SOURCE_DIR}/src/base)
+include_directories(${PROJECT_SOURCE_DIR}/src/client)
+include_directories(${PROJECT_SOURCE_DIR}/src/server)
+include_directories(${PROJECT_BINARY_DIR}/src/base)
+
+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)
+