2014-11-02 22:43:10 +02:00
|
|
|
#.rst:
|
|
|
|
# FindFuzzylite
|
|
|
|
# --------
|
|
|
|
#
|
2017-03-24 13:01:40 +02:00
|
|
|
# Locate FuzzyLite library
|
2014-11-02 22:43:10 +02:00
|
|
|
#
|
|
|
|
#=============================================================================
|
|
|
|
# Copyright 2003-2009 Kitware, Inc.
|
|
|
|
# Copyright 2012 Benjamin Eikel
|
|
|
|
# Copyright 2014 Mikhail Paulyshka
|
|
|
|
#
|
|
|
|
# Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
# see accompanying file kitware license.txt for details.
|
|
|
|
#
|
|
|
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# See the License for more information.
|
|
|
|
#=============================================================================
|
|
|
|
# (To distribute this file outside of CMake, substitute the full
|
|
|
|
# License text for the above reference.)
|
|
|
|
|
2022-05-26 07:55:20 +02:00
|
|
|
find_path(fuzzylite_INCLUDE_DIR
|
2014-11-02 22:43:10 +02:00
|
|
|
fl/fuzzylite.h
|
2023-09-16 07:13:16 +02:00
|
|
|
fuzzylite/fuzzylite.h
|
2014-11-02 22:43:10 +02:00
|
|
|
HINTS
|
|
|
|
ENV FLDIR
|
|
|
|
PATH_SUFFIXES
|
|
|
|
fl
|
2023-09-16 07:13:16 +02:00
|
|
|
include/fl
|
|
|
|
include/fuzzylite
|
2014-11-02 22:43:10 +02:00
|
|
|
include
|
|
|
|
)
|
|
|
|
|
|
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
|
|
set(VC_LIB_PATH_SUFFIX lib/x64)
|
|
|
|
else()
|
|
|
|
set(VC_LIB_PATH_SUFFIX lib/x86)
|
|
|
|
endif()
|
|
|
|
|
2022-05-26 07:55:20 +02:00
|
|
|
find_library(fuzzylite_LIBRARY
|
2014-11-02 22:43:10 +02:00
|
|
|
NAMES
|
|
|
|
fuzzylite
|
|
|
|
HINTS
|
|
|
|
ENV FLDIR
|
|
|
|
PATH_SUFFIXES
|
|
|
|
dynamic
|
|
|
|
lib
|
|
|
|
${VC_LIB_PATH_SUFFIX}
|
|
|
|
)
|
|
|
|
|
2022-05-26 07:55:20 +02:00
|
|
|
set(fuzzylite_LIBRARIES ${fuzzylite_LIBRARY})
|
|
|
|
set(fuzzylite_INCLUDE_DIRS ${fuzzylite_INCLUDE_DIR})
|
2014-11-02 22:43:10 +02:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
2022-05-26 07:55:20 +02:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(fuzzylite
|
|
|
|
REQUIRED_VARS fuzzylite_LIBRARIES fuzzylite_INCLUDE_DIRS)
|
2014-11-02 22:43:10 +02:00
|
|
|
|
2022-05-26 07:55:20 +02:00
|
|
|
if (NOT TARGET "fuzzylite::fuzzylite" AND fuzzylite_FOUND)
|
|
|
|
add_library(fuzzylite::fuzzylite UNKNOWN IMPORTED)
|
|
|
|
set_target_properties(fuzzylite::fuzzylite PROPERTIES
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${fuzzylite_INCLUDE_DIR}")
|
|
|
|
set_target_properties(fuzzylite::fuzzylite PROPERTIES
|
|
|
|
IMPORTED_LOCATION "${fuzzylite_LIBRARY}")
|
|
|
|
endif()
|
|
|
|
|
2023-09-16 07:13:16 +02:00
|
|
|
mark_as_advanced(fuzzylite_LIBRARY fuzzylite_INCLUDE_DIR)
|