2023-02-26 09:39:36 +02:00
|
|
|
if(ENABLE_STATIC_AI_LIBS)
|
2023-02-26 10:39:56 +02:00
|
|
|
add_main_lib(${VCMI_LIB_TARGET} STATIC)
|
2023-02-26 09:39:36 +02:00
|
|
|
target_compile_definitions(${VCMI_LIB_TARGET} PRIVATE STATIC_AI)
|
2023-02-26 10:39:56 +02:00
|
|
|
target_link_libraries(${VCMI_LIB_TARGET} PRIVATE
|
|
|
|
BattleAI
|
2023-02-28 12:08:58 +02:00
|
|
|
EmptyAI
|
|
|
|
StupidAI
|
2023-02-26 10:39:56 +02:00
|
|
|
VCAI
|
|
|
|
)
|
|
|
|
if(ENABLE_NULLKILLER_AI)
|
|
|
|
target_link_libraries(${VCMI_LIB_TARGET} PRIVATE Nullkiller)
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
add_main_lib(${VCMI_LIB_TARGET} SHARED)
|
2023-02-26 09:39:36 +02:00
|
|
|
endif()
|
2022-12-06 00:00:56 +02:00
|
|
|
if(ENABLE_SINGLE_APP_BUILD)
|
2023-02-22 11:32:19 +02:00
|
|
|
target_compile_definitions(${VCMI_LIB_TARGET} PUBLIC VCMI_LIB_NAMESPACE=LIB_CLIENT)
|
2022-12-05 22:57:43 +02:00
|
|
|
endif()
|