2020-08-03 20:31:47 +08:00
|
|
|
set(target_name spine)
|
|
|
|
|
2022-08-11 15:41:10 +08:00
|
|
|
file(GLOB_RECURSE _AX_SPINE_SRC
|
2020-08-03 19:12:07 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/*.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/**/*.cpp
|
|
|
|
)
|
|
|
|
|
2022-08-11 15:41:10 +08:00
|
|
|
file(GLOB_RECURSE _AX_SPINE_HEADER
|
2020-08-03 19:12:07 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/*.h
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/**/*.h
|
2020-08-03 20:31:47 +08:00
|
|
|
)
|
|
|
|
|
2022-08-11 15:41:10 +08:00
|
|
|
add_library(${target_name} ${_AX_SPINE_HEADER} ${_AX_SPINE_SRC})
|
2020-10-17 16:32:16 +08:00
|
|
|
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
|
|
target_compile_definitions(${target_name}
|
|
|
|
PRIVATE SPINEPLUGIN_API=DLLEXPORT
|
2022-07-08 07:17:41 +08:00
|
|
|
PUBLIC AX_HAVE_EXTENSION_SPINE=1
|
2020-10-17 16:32:16 +08:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_include_directories(${target_name} PUBLIC "runtime/include")
|
|
|
|
|
2022-08-11 15:41:10 +08:00
|
|
|
setup_ax_extension_config(${target_name})
|