CMakeLists.txt 748 B

12345678910111213141516171819202122232425
  1. cmake_minimum_required(VERSION 2.8.9)
  2. project(spine)
  3. set(CMAKE_INSTALL_PREFIX "./")
  4. set(CMAKE_VERBOSE_MAKEFILE ON)
  5. set(SPINE_SFML FALSE CACHE BOOL FALSE)
  6. set(SPINE_COCOS2D_OBJC FALSE CACHE BOOL FALSE)
  7. set(SPINE_COCOS2D_X FALSE CACHE BOOL FALSE)
  8. if((${SPINE_SFML}) OR (${CMAKE_CURRENT_BINARY_DIR} MATCHES "spine-sfml"))
  9. add_subdirectory(spine-c)
  10. add_subdirectory(spine-sfml)
  11. endif()
  12. if((${SPINE_COCOS2D_OBJC}) OR (${CMAKE_CURRENT_BINARY_DIR} MATCHES "spine-cocos2d-objc"))
  13. if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  14. add_subdirectory(spine-cocos2d-objc)
  15. endif()
  16. endif()
  17. if((${SPINE_COCOS2D_X}) OR (${CMAKE_CURRENT_BINARY_DIR} MATCHES "spine-cocos2dx"))
  18. add_subdirectory(spine-cocos2dx)
  19. endif()
  20. add_subdirectory(spine-c/spine-c-unit-tests)