Restore linking against all libraries in the cmake_subproject test
diff --git a/programs/test/cmake_subproject/CMakeLists.txt b/programs/test/cmake_subproject/CMakeLists.txt
index 3afbdb2..3e32c5f 100644
--- a/programs/test/cmake_subproject/CMakeLists.txt
+++ b/programs/test/cmake_subproject/CMakeLists.txt
@@ -8,9 +8,11 @@
 # Add Mbed TLS as a subdirectory.
 add_subdirectory(${MBEDTLS_DIR} build)
 
-# Link against the Mbed Crypto library.
+# Link against all the Mbed TLS libraries.
 set(libs
     mbedcrypto
+    mbedx509
+    mbedtls
 )
 
 add_executable(cmake_subproject cmake_subproject.c)