aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindPQXX.cmake
blob: 724079b23fb9f623d4079b1dcb7ec62ebc5d2b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)