# - Try to find PNC
#  Once done this will define
#  PNC_FOUND - System has Gurobi
#  PNC_INCLUDE_DIRS - The Gurobi include directories
#  PNC_LIBRARIES - The libraries needed to use Gurobi

find_path(PNC_INCLUDE_DIR
          NAMES Configuration.h
          PATHS "/usr/local/include/PnC"
          )
find_library(PNC_UTILS_LIBRARY
             NAMES myUtils
             PATHS "/usr/local/lib"
             )
find_library(SCORPIO_PNC_LIBRARY
             NAMES ScorpioPnC
             PATHS "/usr/local/lib"
             )

include(FindPackageHandleStandardArgs)

if(PNC_INCLUDE_DIR)
    set(PNC_INCLUDE_DIRS "${PNC_INCLUDE_DIR}" )
    set(PNC_LIBRARIES "${SCORPIO_PNC_LIBRARY};${PNC_UTILS_LIBRARY}" )
    set(PNC_FOUND TRUE)
    message("-- Found PnC: TRUE")
else()
    message("-- Found PnC: FALSE, Build without PnC")
endif()

mark_as_advanced( PNC_INCLUDE_DIR
                SCORPIO_PNC_LIBRARY
                  PNC_UTILS_LIBRARY )
