1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/lib/CMakeLists.txt

10 lines
400 B
CMake
Raw Normal View History

2023-02-22 11:32:19 +02:00
add_main_lib(${VCMI_LIB_TARGET} SHARED)
target_sources(${VCMI_LIB_TARGET} PRIVATE ${VCMILIB_AI_SOURCES})
target_link_libraries(${VCMI_LIB_TARGET} PRIVATE ${VCMILIB_AI_LIBRARIES})
if(ENABLE_STATIC_AI_LIBS)
target_compile_definitions(${VCMI_LIB_TARGET} PRIVATE STATIC_AI)
endif()
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)
endif()