mirror of
https://github.com/vcmi/vcmi.git
synced 2025-10-08 23:22:25 +02:00
45 lines
1.2 KiB
CMake
45 lines
1.2 KiB
CMake
#######################################
|
|
# FuzzyLite support #
|
|
#######################################
|
|
|
|
if(NOT WIN32 AND NOT APPLE)
|
|
option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" ON)
|
|
else()
|
|
option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" OFF)
|
|
endif()
|
|
|
|
#FuzzyLite uses MSVC pragmas in headers, so, we need to disable -Wunknown-pragmas
|
|
if(MINGW)
|
|
add_compile_options(-Wno-unknown-pragmas)
|
|
endif()
|
|
|
|
if(NOT FORCE_BUNDLED_FL)
|
|
find_package(fuzzylite)
|
|
else()
|
|
set(fuzzylite_FOUND FALSE)
|
|
endif()
|
|
|
|
if(NOT fuzzylite_FOUND)
|
|
set(FL_BUILD_BINARY OFF CACHE BOOL "")
|
|
set(FL_BUILD_SHARED OFF CACHE BOOL "")
|
|
set(FL_BUILD_TESTS OFF CACHE BOOL "")
|
|
if(ANDROID)
|
|
set(FL_BACKTRACE OFF CACHE BOOL "" FORCE)
|
|
endif()
|
|
|
|
add_subdirectory(FuzzyLite EXCLUDE_FROM_ALL)
|
|
add_library(fuzzylite::fuzzylite ALIAS staticTarget)
|
|
endif()
|
|
|
|
#######################################
|
|
# Add subdirectories #
|
|
#######################################
|
|
|
|
add_subdirectory(BattleAI)
|
|
add_subdirectory(VCAI)
|
|
add_subdirectory(StupidAI)
|
|
add_subdirectory(EmptyAI)
|
|
if(ENABLE_NULLKILLER_AI)
|
|
add_subdirectory(Nullkiller)
|
|
endif()
|