 +install(FILES strophe.h DESTINATION include${verDir}/${PROJECT_NAME})
 diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
 new file mode 100644
-index 0000000..0994870
+index 0000000..fa052a0
 --- /dev/null
 +++ b/examples/CMakeLists.txt
-@@ -0,0 +1,12 @@
+@@ -0,0 +1,13 @@
 +set(examples
 +  active
 +  basic

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..24de4ed
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,22 @@
+cmake_minimum_required(VERSION 3.0)
+project(libstrophe)
+include(flags OPTIONAL)
+enable_testing()
+########################################
+# version
+set(verString "^AC_INIT.*\\[\([.0-9]*\)\\].*")

+foreach(exe ${examples})
+  add_executable(${exe} ${exe}.c)
+  target_link_libraries(${exe} libstrophe expat resolv) # TODO library dependencies
+  set_property(TARGET ${exe} PROPERTY FOLDER examples)
+endforeach()
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
