mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +08:00
- ir-generator did not handle const String& parameters correctly - Type hierarchy of Bone, Constraint was incorrect. Bone didn't extend Update, thus fetching RTTI in updateCache failed at runtime.
21 lines
617 B
CMake
21 lines
617 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(spine-cpp)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../flags.cmake)
|
|
|
|
include_directories(include)
|
|
file(GLOB INCLUDES "spine-cpp/include/**/*.h")
|
|
file(GLOB SOURCES "spine-cpp/src/**/*.cpp")
|
|
|
|
add_library(spine-cpp STATIC ${SOURCES} ${INCLUDES})
|
|
target_include_directories(spine-cpp PUBLIC spine-cpp/include)
|
|
|
|
# Install target
|
|
install(TARGETS spine-cpp EXPORT spine-cpp_TARGETS DESTINATION dist/lib)
|
|
install(FILES ${INCLUDES} DESTINATION dist/include)
|
|
|
|
# Export target
|
|
export(
|
|
EXPORT spine-cpp_TARGETS
|
|
FILE ${CMAKE_CURRENT_BINARY_DIR}/spine-cppTargets.cmake
|
|
NAMESPACE "Spine::") |