aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindPQXX.cmake
diff options
context:
space:
mode:
authorRichard Knight <q@1bpm.net>2020-03-17 18:47:36 +0000
committerRichard Knight <q@1bpm.net>2020-03-17 18:47:36 +0000
commitc3853f6dd796615f332fefcaaaf563794d867ee4 (patch)
treebe3aa506a3631e9261a68894a9fad26ccd911f80 /cmake/Modules/FindPQXX.cmake
downloadcsound-sqldb-c3853f6dd796615f332fefcaaaf563794d867ee4.tar.gz
csound-sqldb-c3853f6dd796615f332fefcaaaf563794d867ee4.tar.bz2
csound-sqldb-c3853f6dd796615f332fefcaaaf563794d867ee4.zip
initial
Diffstat (limited to 'cmake/Modules/FindPQXX.cmake')
-rw-r--r--cmake/Modules/FindPQXX.cmake33
1 files changed, 33 insertions, 0 deletions
diff --git a/cmake/Modules/FindPQXX.cmake b/cmake/Modules/FindPQXX.cmake
new file mode 100644
index 0000000..724079b
--- /dev/null
+++ b/cmake/Modules/FindPQXX.cmake
@@ -0,0 +1,33 @@
+# - Find libpqxx
+# Find the libpqxx includes and client library
+# This module defines
+# PQXX_INCLUDE_DIRS
+# PQXX_LIBRARIES
+# PQXX_FOUND
+
+include (FindPackageHandleStandardArgs)
+
+find_path (PQXX_INCLUDE_DIRS
+ NAME
+ pqxx
+ PATHS
+ /usr/include
+ /usr/local/include
+ PATH_SUFFIXES
+ pqxx
+ DOC
+ "Directory for pqxx headers"
+)
+
+find_library (PQXX_LIBRARIES
+ NAMES
+ pqxx
+)
+
+FIND_PACKAGE_HANDLE_STANDARD_ARGS("PQXX"
+ "libpqxx couldn't be found"
+ PQXX_LIBRARIES
+ PQXX_INCLUDE_DIRS
+)
+
+mark_as_advanced (PQXX_INCLUDE_DIR PQXX_LIBRARY) \ No newline at end of file