1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00
vcmi/AI/CMakeLists.txt
josch fab31642d9 prepare for update to fuzzylite 5.0
- use system version of fuzzylite if available
 - adapt include paths
2014-10-25 16:00:44 +02:00

22 lines
660 B
CMake

project(AI)
cmake_minimum_required(VERSION 2.6)
find_path(FUZZYLITE_INCLUDE_PATH NAMES fl/fuzzylite.h)
find_library(FUZZYLITE_LIB NAMES fuzzylite PATH_SUFFIXES dynamic)
mark_as_advanced(FUZZYLITE_INCLUDE_PATH FUZZYLITE_LIB)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FUZZYLITE FUZZYLITE_INCLUDE_PATH FUZZYLITE_LIB)
if (FUZZYLITE_FOUND)
set (FUZZYLITE_LIBRARIES ${FUZZYLITE_LIB})
set (FUZZYLITE_INCLUDE_DIR ${FUZZYLITE_INCLUDE_PATH})
endif()
if (NOT FUZZYLITE_FOUND)
add_subdirectory(FuzzyLite/fuzzylite)
endif()
add_subdirectory(BattleAI)
add_subdirectory(StupidAI)
add_subdirectory(EmptyAI)
add_subdirectory(VCAI)