1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
### AI Wrappers
#
# Functions and macros defined in this file:
# * ai_wrapper_message
#
#add_definitions(-DBUILDING_AI_WRAPPER)
set(AI_WRAPPER_SRC "${CMAKE_CURRENT_SOURCE_DIR}")
set(AIWRAPPER_FIND_QUIETLY ${AI_FIND_QUIETLY})
# Print a message, but only if we are allowed to speak.
macro (ai_wrapper_message type msg)
if (NOT AIWRAPPER_FIND_QUIETLY)
message(${type} "${msg}")
endif ()
endmacro ()
# Configure all AI Wrapper submodules that need processing
get_list_of_submodules(AI_WRAPPER_DIRS)
set(DEPS_AI_WRAPPERS "")
foreach (aiWrapperDir ${AI_WRAPPER_DIRS})
# exclude CUtils here, as it was already included before
if (NOT "${aiWrapperDir}" STREQUAL "CUtils")
add_subdirectory(${aiWrapperDir})
if(TARGET ${aiWrapperDir}-AIWrapper)
list(APPEND DEPS_AI_WRAPPERS ${aiWrapperDir}-AIWrapper)
endif ()
endif ()
endforeach ()
make_global(DEPS_AI_WRAPPERS)
|