2017-08-15 20:18:02 +02:00
|
|
|
#######################################
|
|
|
|
# FuzzyLite support #
|
|
|
|
#######################################
|
|
|
|
|
2017-08-16 02:44:34 +02:00
|
|
|
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()
|
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()
|
|
|
|
|
2021-07-27 20:26:17 +02:00
|
|
|
if(TBB_FOUND AND MSVC)
|
|
|
|
get_target_property(TBB_LIB_LOCATION TBB::tbb LOCATION)
|
|
|
|
get_filename_component(TBB_LIB_FOLDER ${TBB_LIB_LOCATION} PATH)
|
|
|
|
get_filename_component(TBB_DLL ${TBB_LIB_FOLDER}/../bin/tbb.dll ABSOLUTE)
|
|
|
|
message("${TBB_DLL}")
|
|
|
|
install(FILES ${TBB_DLL} DESTINATION ${BIN_DIR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(FL_FOUND)
|
|
|
|
if(MSVC)
|
|
|
|
get_filename_component(FL_LIB_FOLDER ${FL_LIBRARIES} PATH)
|
|
|
|
get_filename_component(FL_DLL ${FL_LIB_FOLDER}/../bin/fuzzylite.dll ABSOLUTE)
|
|
|
|
message("${FL_DLL}")
|
|
|
|
install(FILES ${FL_DLL} DESTINATION ${BIN_DIR})
|
|
|
|
endif()
|
|
|
|
else()
|
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 "")
|
2017-08-15 20:18:02 +02:00
|
|
|
add_subdirectory(FuzzyLite/fuzzylite EXCLUDE_FROM_ALL)
|
2014-09-02 16:29:28 +03:00
|
|
|
endif()
|
2017-08-15 20:17:00 +02:00
|
|
|
|
2017-08-15 20:18:02 +02:00
|
|
|
#######################################
|
|
|
|
# Add subdirectories #
|
|
|
|
#######################################
|
|
|
|
|
|
|
|
add_subdirectory(BattleAI)
|
|
|
|
add_subdirectory(StupidAI)
|
|
|
|
add_subdirectory(EmptyAI)
|
|
|
|
add_subdirectory(VCAI)
|
2021-05-16 14:39:38 +02:00
|
|
|
add_subdirectory(Nullkiller)
|