# StdAI: concrete AI "brain" plugin built on top of ../ (the generic # AiModule/AiModuleHost/CustomAI/ToolAI protocol layer). Ported from # perso/cevo/AI/StdAI/{Barbarina.pas, AI.pas} - class Cevo::AI (TAI) derives # from Cevo::Barbarina (TBarbarina) derives from Cevo::ToolAI. # # Built as its own shared library (not linked into the cevo-evo executable): # like the original's StdAI.dll/.so, it is meant to be loaded dynamically at # runtime (via Cevo::AiModule) alongside other precompiled AI modules. set(STDAI_HEADERS include/Cevo/AI.h include/Cevo/Barbarina.h ) set(STDAI_SOURCES src/AI.cpp src/Barbarina.cpp src/StdAIModule.cpp ) add_library(stdai SHARED ${STDAI_SOURCES} ${STDAI_HEADERS}) target_include_directories(stdai PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include ) target_link_libraries(stdai PRIVATE cevoai) set_target_properties(stdai PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON PREFIX "" ) include(GNUInstallDirs) install(TARGETS stdai LIBRARY DESTINATION ${CMAKE_INSTALL_AIDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_AIDIR} )