2016-10-02 17:40:33 +02:00
|
|
|
option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" OFF)
|
2014-09-02 16:29:28 +03:00
|
|
|
|
2017-08-15 20:17:00 +02:00
|
|
|
if(NOT FORCE_BUNDLED_FL)
|
2017-03-24 13:01:40 +02:00
|
|
|
find_package(FuzzyLite)
|
2016-10-02 17:40:33 +02:00
|
|
|
else()
|
|
|
|
set(FL_FOUND FALSE)
|
|
|
|
endif()
|
|
|
|
|
2017-08-15 20:17:00 +02:00
|
|
|
if(NOT FL_FOUND)
|
2014-11-02 22:43:10 +02:00
|
|
|
set(FL_BUILD_BINARY OFF CACHE BOOL "")
|
|
|
|
set(FL_BUILD_SHARED OFF CACHE BOOL "")
|
2017-08-15 20:17:00 +02:00
|
|
|
set(FL_BUILD_TESTS OFF CACHE BOOL "")
|
|
|
|
add_subdirectory_with_folder("AI" FuzzyLite/fuzzylite EXCLUDE_FROM_ALL)
|
2014-09-02 16:29:28 +03:00
|
|
|
endif()
|
2017-08-15 20:17:00 +02:00
|
|
|
|
|
|
|
add_subdirectory_with_folder("AI" BattleAI)
|
|
|
|
add_subdirectory_with_folder("AI" StupidAI)
|
|
|
|
add_subdirectory_with_folder("AI" EmptyAI)
|
|
|
|
add_subdirectory_with_folder("AI" VCAI)
|