2012-07-01 14:27:41 +00:00
|
|
|
project(AI)
|
2014-11-02 23:43:10 +03:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
2012-07-01 14:27:41 +00:00
|
|
|
|
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 15:29:28 +02:00
|
|
|
|
2016-10-02 17:40:33 +02:00
|
|
|
if (NOT FORCE_BUNDLED_FL)
|
|
|
|
find_package(Fuzzylite)
|
|
|
|
else()
|
|
|
|
set(FL_FOUND FALSE)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT MSVC)
|
2014-11-17 11:42:22 +01:00
|
|
|
add_definitions(-DFL_CPP11)
|
|
|
|
set(FL_CPP11 ON CACHE BOOL "")
|
|
|
|
endif()
|
|
|
|
|
2014-11-02 23:43:10 +03:00
|
|
|
if (NOT FL_FOUND)
|
|
|
|
set(FL_BUILD_BINARY OFF CACHE BOOL "")
|
|
|
|
set(FL_BUILD_SHARED OFF CACHE BOOL "")
|
2014-09-02 15:29:28 +02:00
|
|
|
add_subdirectory(FuzzyLite/fuzzylite)
|
|
|
|
endif()
|
2012-09-22 15:10:15 +00:00
|
|
|
add_subdirectory(BattleAI)
|
2012-07-01 14:27:41 +00:00
|
|
|
add_subdirectory(StupidAI)
|
|
|
|
add_subdirectory(EmptyAI)
|
2016-10-02 17:40:33 +02:00
|
|
|
add_subdirectory(VCAI)
|