mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-13 22:06:58 +02:00
Merge pull request #2845 from Alexander-Wilms/fuzzylite
Support include path of more recent fuzzylite versions
This commit is contained in:
commit
988531c6cb
@ -8,7 +8,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <fl/Headers.h>
|
#if __has_include(<fuzzylite/Headers.h>)
|
||||||
|
# include <fuzzylite/Headers.h>
|
||||||
|
#else
|
||||||
|
# include <fl/Headers.h>
|
||||||
|
#endif
|
||||||
#include "../Goals/AbstractGoal.h"
|
#include "../Goals/AbstractGoal.h"
|
||||||
|
|
||||||
VCMI_LIB_NAMESPACE_BEGIN
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
@ -8,7 +8,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "fl/Headers.h"
|
#if __has_include(<fuzzylite/Headers.h>)
|
||||||
|
# include <fuzzylite/Headers.h>
|
||||||
|
#else
|
||||||
|
# include <fl/Headers.h>
|
||||||
|
#endif
|
||||||
#include "../Goals/CGoal.h"
|
#include "../Goals/CGoal.h"
|
||||||
#include "../Pathfinding/AIPathfinder.h"
|
#include "../Pathfinding/AIPathfinder.h"
|
||||||
|
|
||||||
|
@ -8,7 +8,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <fl/Headers.h>
|
#if __has_include(<fuzzylite/Headers.h>)
|
||||||
|
# include <fuzzylite/Headers.h>
|
||||||
|
#else
|
||||||
|
# include <fl/Headers.h>
|
||||||
|
#endif
|
||||||
#include "Goals/AbstractGoal.h"
|
#include "Goals/AbstractGoal.h"
|
||||||
|
|
||||||
VCMI_LIB_NAMESPACE_BEGIN
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
@ -21,11 +21,13 @@
|
|||||||
|
|
||||||
find_path(fuzzylite_INCLUDE_DIR
|
find_path(fuzzylite_INCLUDE_DIR
|
||||||
fl/fuzzylite.h
|
fl/fuzzylite.h
|
||||||
|
fuzzylite/fuzzylite.h
|
||||||
HINTS
|
HINTS
|
||||||
ENV FLDIR
|
ENV FLDIR
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
fl
|
fl
|
||||||
include/fl
|
include/fl
|
||||||
|
include/fuzzylite
|
||||||
include
|
include
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -62,4 +64,4 @@ if (NOT TARGET "fuzzylite::fuzzylite" AND fuzzylite_FOUND)
|
|||||||
IMPORTED_LOCATION "${fuzzylite_LIBRARY}")
|
IMPORTED_LOCATION "${fuzzylite_LIBRARY}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
mark_as_advanced(fuzzylite_LIBRARY fuzzylite_INCLUDE_DIR)
|
mark_as_advanced(fuzzylite_LIBRARY fuzzylite_INCLUDE_DIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user