1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Add the option to forcefully use bundled fuzzylite

cmake -DFORCE_BUNDLED_FL=TRUE ...

As requested in #231
This commit is contained in:
Vadim Markovtsev 2016-10-02 17:40:33 +02:00
parent 1c2a40592a
commit 63383502c3

View File

@ -1,9 +1,15 @@
project(AI)
cmake_minimum_required(VERSION 2.8)
find_package(Fuzzylite)
option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" OFF)
if(NOT MSVC)
if (NOT FORCE_BUNDLED_FL)
find_package(Fuzzylite)
else()
set(FL_FOUND FALSE)
endif()
if (NOT MSVC)
add_definitions(-DFL_CPP11)
set(FL_CPP11 ON CACHE BOOL "")
endif()
@ -16,4 +22,4 @@ endif()
add_subdirectory(BattleAI)
add_subdirectory(StupidAI)
add_subdirectory(EmptyAI)
add_subdirectory(VCAI)
add_subdirectory(VCAI)