# - Config file for the LeapSerial package
# It defines the following variables
#  LeapSerial_FOUND - indicates that the module was found
#  LeapSerial_INCLUDE_DIR - include directories

# Check if local build
if ("@CMAKE_CURRENT_BINARY_DIR@" STREQUAL CMAKE_CURRENT_LIST_DIR)
  set(LeapSerial_INCLUDE_DIR "@PROJECT_SOURCE_DIR@")
else()
  set(LeapSerial_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/include")
endif()

include("${CMAKE_CURRENT_LIST_DIR}/cmake/LeapSerialTargets.cmake")
set(LeapSerial_FOUND TRUE)

# - Config file for the LeapSerial package
# It defines the following variables
#  LeapSerial_FOUND - indicates that the module was found
#  LeapSerial_INCLUDE_DIR - include directories

# Check if local build
if ("@CMAKE_CURRENT_BINARY_DIR@" STREQUAL CMAKE_CURRENT_LIST_DIR)
  set(LeapSerial_INCLUDE_DIR "@PROJECT_SOURCE_DIR@")
  include("${CMAKE_CURRENT_LIST_DIR}/LeapSerialTargets.cmake")
else()
  set(LeapSerial_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/include")
  include("${CMAKE_CURRENT_LIST_DIR}/cmake/LeapSerialTargets.cmake")
endif()

set(LeapSerial_FOUND TRUE)

Fix bad external CMake reference
Fix bad external CMake reference

This changeup is required to allow leapserial to be referenced in a non-install build.
