################################################################################
#
# Copyright (c) 2011-2021  Made to Order Software Corp.  All Rights Reserved
#
# http://snapwebsites.org/
# contact@m2osw.com
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
################################################################################
#
# Try to find CassandraCppDriver
#
# Once done this will define
#
# CASSANDRACPPDRIVER_FOUND        - System has CassandraCppDriver
# CASSANDRACPPDRIVER_INCLUDE_DIRS - The CassandraCppDriver include directories
# CASSANDRACPPDRIVER_LIBRARIES    - The libraries needed to use CassandraCppDriver
# CASSANDRACPPDRIVER_DEFINITIONS  - Compiler switches required for using CassandraCppDriver
#

find_path( CASSANDRACPPDRIVER_INCLUDE_DIR cassandra.h
			PATHS $ENV{CASSANDRACPPDRIVER_INCLUDE_DIR}
			PATH_SUFFIXES proc
		 )
find_library( CASSANDRACPPDRIVER_LIBRARY cassandra
			PATHS $ENV{CASSANDRACPPDRIVER_LIBRARY}
		 )
mark_as_advanced( CASSANDRACPPDRIVER_INCLUDE_DIR CASSANDRACPPDRIVER_LIBRARY )

set( CASSANDRACPPDRIVER_INCLUDE_DIRS ${CASSANDRACPPDRIVER_INCLUDE_DIR} )
set( CASSANDRACPPDRIVER_LIBRARIES    ${CASSANDRACPPDRIVER_LIBRARY}     )

include( FindPackageHandleStandardArgs )
# handle the QUIETLY and REQUIRED arguments and set CASSANDRACPPDRIVER_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args( CASSANDRACPPDRIVER DEFAULT_MSG CASSANDRACPPDRIVER_INCLUDE_DIR CASSANDRACPPDRIVER_LIBRARY )
