@PACKAGE_INIT@

include("${CMAKE_CURRENT_LIST_DIR}/TessesFrameworkTargets.cmake")

check_required_components(TessesFramework)
include(GNUInstallDirs)
if(NOT WIN32)
if(@TESSESFRAMEWORK_ENABLE_THREADING@)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
endif()
endif()

set(TESSESFRAMEWORK_ENABLE_MBED @TESSESFRAMEWORK_ENABLE_MBED@)
set(TESSESFRAMEWORK_ENABLE_SQLITE @TESSESFRAMEWORK_ENABLE_SQLITE@)
set(TESSESFRAMEWORK_ENABLE_PLATFORMFOLDERS @TESSESFRAMEWORK_ENABLE_PLATFORMFOLDERS@)

set(TESSESFRAMEWORK_ENABLE_NETWORKING @TESSESFRAMEWORK_ENABLE_NETWORKING@)
set(TESSESFRAMEWORK_ENABLE_THREADING @TESSESFRAMEWORK_ENABLE_THREADING@)
set(TESSESFRAMEWORK_ENABLE_PROCESS @TESSESFRAMEWORK_ENABLE_PROCESS@)
set(TESSESFRAMEWORK_ENABLE_RPATH @TESSESFRAMEWORK_ENABLE_RPATH@)
set(TESSESFRAMEWORK_STATIC @TESSESFRAMEWORK_STATIC@)

if(@TESSESFRAMEWORK_ENABLE_RPATH@ AND NOT @TESSESFRAMEWORK_STATIC@)
set(CMAKE_MACOSX_RPATH 1)
set(CMAKE_BUILD_RPATH_USE_ORIGIN TRUE)

if (APPLE)
    set(CMAKE_INSTALL_RPATH "@executable_path/../${CMAKE_INSTALL_LIBDIR}")
else()
    set(CMAKE_INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
endif()
endif()