diff options
author | Richard Knight <q@1bpm.net> | 2020-03-17 18:47:36 +0000 |
---|---|---|
committer | Richard Knight <q@1bpm.net> | 2020-03-17 18:47:36 +0000 |
commit | c3853f6dd796615f332fefcaaaf563794d867ee4 (patch) | |
tree | be3aa506a3631e9261a68894a9fad26ccd911f80 /cmake/Modules/FindPQXX.cmake | |
download | csound-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.cmake | 33 |
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 |