diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3c824e..d7a1cce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -168,6 +168,6 @@ if(${PROJECT_NAME}_IS_ROOT_PROJECT)
     enable_testing()
     add_subdirectory(testtools)
     add_subdirectory(unittests)
+    add_subdirectory(examples)
   endif()
-  add_subdirectory(examples)
 endif()
