#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_install_wtdbo_headers.dpatch by Mike Teehan <mike.teehan@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Install the Wt::Dbo headers

@DPATCH@

diff --git a/src/Wt/Dbo/backend/CMakeLists.txt b/src/Wt/Dbo/backend/CMakeLists.txt
index bcddba5..7aeb363 100644
--- a/src/Wt/Dbo/backend/CMakeLists.txt
+++ b/src/Wt/Dbo/backend/CMakeLists.txt
@@ -33,6 +33,7 @@ PROPERTIES
 )
 
 INSTALL_FILES(/include/Wt/Dbo/backend "^Sqlite3$")
+INSTALL_FILES(/include/Wt/Dbo/backend ".*Sqlite3.*\.h")
 
 IF(POSTGRES_FOUND)
   MESSAGE("** Wt::Dbo: building Postgres backend.")
@@ -57,6 +58,7 @@ IF(POSTGRES_FOUND)
   )
 
   INSTALL_FILES(/include/Wt/Dbo/backend "^Postgres$")
+  INSTALL_FILES(/include/Wt/Dbo/backend ".*Postgres.*\.h")
 ELSE(POSTGRES_FOUND)
   MESSAGE("** Wt::Dbo: could not find libpq development files, not building Postgres backend.")
 ENDIF(POSTGRES_FOUND)
