 +  PREFIX "" # strip off the "lib" prefix, since it's already libstrophe
 +  )
 +########################################
-+# install
 +set(targetsFile ${PROJECT_NAME}${ver}-targets)
 +install(TARGETS ${lib_name} EXPORT ${targetsFile}
 +  RUNTIME DESTINATION bin

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..fdfebc6
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,69 @@
+cmake_minimum_required(VERSION 3.0)
+project(libstrophe)
+include(flags OPTIONAL)
+enable_testing()

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