mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Upgrade to fuzzylite 6.0 as a submodule
This commit is contained in:
committed by
Arseniy Shestakov
parent
c3e6195cc9
commit
7069f4b416
57
cmake_modules/FindFuzzyLite.cmake
Normal file
57
cmake_modules/FindFuzzyLite.cmake
Normal file
@@ -0,0 +1,57 @@
|
||||
#.rst:
|
||||
# FindFuzzylite
|
||||
# --------
|
||||
#
|
||||
# Locate FuzzyLite library
|
||||
#
|
||||
#=============================================================================
|
||||
# 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.)
|
||||
|
||||
find_path(FL_INCLUDE_DIR
|
||||
fl/fuzzylite.h
|
||||
HINTS
|
||||
ENV FLDIR
|
||||
PATH_SUFFIXES
|
||||
fl
|
||||
include/fl
|
||||
include
|
||||
)
|
||||
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
set(VC_LIB_PATH_SUFFIX lib/x64)
|
||||
else()
|
||||
set(VC_LIB_PATH_SUFFIX lib/x86)
|
||||
endif()
|
||||
|
||||
find_library(FL_LIBRARY
|
||||
NAMES
|
||||
fuzzylite
|
||||
HINTS
|
||||
ENV FLDIR
|
||||
PATH_SUFFIXES
|
||||
dynamic
|
||||
lib
|
||||
${VC_LIB_PATH_SUFFIX}
|
||||
)
|
||||
|
||||
set(FL_LIBRARIES ${FL_LIBRARY})
|
||||
set(FL_INCLUDE_DIRS ${FL_INCLUDE_DIR})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FL
|
||||
REQUIRED_VARS FL_LIBRARIES FL_INCLUDE_DIRS)
|
||||
|
||||
mark_as_advanced(FL_LIBRARY FL_INCLUDE_DIR)
|
||||
Reference in New Issue
Block a user