|
|
@@ -2,15 +2,19 @@
|
|
|
# FuzzyLite support #
|
|
|
#######################################
|
|
|
|
|
|
+option(ENABLE_NULLKILLER_AI "Enable compilation of Nullkiller AI library" ON)
|
|
|
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()
|
|
|
|
|
|
-if(TBB_FOUND AND MSVC)
|
|
|
- install_vcpkg_imported_tgt(TBB::tbb)
|
|
|
-endif()
|
|
|
+if(ENABLE_NULLKILLER_AI)
|
|
|
+ find_package(TBB REQUIRED)
|
|
|
+ if(MSVC)
|
|
|
+ install_vcpkg_imported_tgt(TBB::tbb)
|
|
|
+ endif()
|
|
|
+end()
|
|
|
|
|
|
|
|
|
if(NOT FORCE_BUNDLED_FL)
|
|
|
@@ -40,6 +44,6 @@ add_subdirectory(BattleAI)
|
|
|
add_subdirectory(StupidAI)
|
|
|
add_subdirectory(EmptyAI)
|
|
|
add_subdirectory(VCAI)
|
|
|
-if(TBB_FOUND)
|
|
|
+if(ENABLE_NULLKILLER_AI)
|
|
|
add_subdirectory(Nullkiller)
|
|
|
endif()
|