--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -446,7 +446,6 @@ IF(NOT WITHOUT_SERVER)
   OPTION (WITH_EMBEDDED_SERVER "Compile MariaDB with embedded server" OFF)
   IF(WITH_EMBEDDED_SERVER)
     ADD_SUBDIRECTORY(libmysqld)
-    ADD_SUBDIRECTORY(libmysqld/examples)
     ADD_SUBDIRECTORY(unittest/embedded)
   ENDIF(WITH_EMBEDDED_SERVER)
   IF(NOT WIN32)
@@ -575,7 +574,6 @@ IF(NOT WITHOUT_SERVER)
    mariadb-plugin
    mariadb-show
    mariadb-slap
-   mariadb-test
    mariadb-tzinfo-to-sql
    mariadb-upgrade
    mariadbd
