mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Add an option to disable Nullkiller AI
This commit is contained in:
@ -2,15 +2,19 @@
|
|||||||
# FuzzyLite support #
|
# FuzzyLite support #
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
|
option(ENABLE_NULLKILLER_AI "Enable compilation of Nullkiller AI library" ON)
|
||||||
if(NOT WIN32 AND NOT APPLE)
|
if(NOT WIN32 AND NOT APPLE)
|
||||||
option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" ON)
|
option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" ON)
|
||||||
else()
|
else()
|
||||||
option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" OFF)
|
option(FORCE_BUNDLED_FL "Force to use FuzzyLite included into VCMI's source tree" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(TBB_FOUND AND MSVC)
|
if(ENABLE_NULLKILLER_AI)
|
||||||
|
find_package(TBB REQUIRED)
|
||||||
|
if(MSVC)
|
||||||
install_vcpkg_imported_tgt(TBB::tbb)
|
install_vcpkg_imported_tgt(TBB::tbb)
|
||||||
endif()
|
endif()
|
||||||
|
end()
|
||||||
|
|
||||||
|
|
||||||
if(NOT FORCE_BUNDLED_FL)
|
if(NOT FORCE_BUNDLED_FL)
|
||||||
@ -40,6 +44,6 @@ add_subdirectory(BattleAI)
|
|||||||
add_subdirectory(StupidAI)
|
add_subdirectory(StupidAI)
|
||||||
add_subdirectory(EmptyAI)
|
add_subdirectory(EmptyAI)
|
||||||
add_subdirectory(VCAI)
|
add_subdirectory(VCAI)
|
||||||
if(TBB_FOUND)
|
if(ENABLE_NULLKILLER_AI)
|
||||||
add_subdirectory(Nullkiller)
|
add_subdirectory(Nullkiller)
|
||||||
endif()
|
endif()
|
||||||
|
@ -312,7 +312,6 @@ find_package(SDL2_ttf REQUIRED)
|
|||||||
if(TARGET SDL2_ttf::SDL2_ttf)
|
if(TARGET SDL2_ttf::SDL2_ttf)
|
||||||
add_library(SDL2::TTF ALIAS SDL2_ttf::SDL2_ttf)
|
add_library(SDL2::TTF ALIAS SDL2_ttf::SDL2_ttf)
|
||||||
endif()
|
endif()
|
||||||
find_package(TBB)
|
|
||||||
|
|
||||||
if(ENABLE_LAUNCHER OR ENABLE_EDITOR)
|
if(ENABLE_LAUNCHER OR ENABLE_EDITOR)
|
||||||
# Widgets finds its own dependencies (QtGui and QtCore).
|
# Widgets finds its own dependencies (QtGui and QtCore).
|
||||||
|
Reference in New Issue
Block a user