|
@@ -1,3 +1,9 @@
|
|
|
+cmake_minimum_required(VERSION 3.10)
|
|
|
+project(spine-sfml)
|
|
|
+
|
|
|
+# Default flags
|
|
|
+include(${CMAKE_CURRENT_LIST_DIR}/../../flags.cmake)
|
|
|
+
|
|
|
#
|
|
|
# First download and extract SFML 2.6.1 for the respective OS we are on
|
|
|
#
|
|
@@ -44,14 +50,8 @@ else()
|
|
|
endif()
|
|
|
endif()
|
|
|
|
|
|
-if(MSVC)
|
|
|
- message("MSCV detected")
|
|
|
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
|
|
|
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
|
|
|
-else()
|
|
|
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -std=c99")
|
|
|
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wnon-virtual-dtor -pedantic -std=c++11 -fno-exceptions -fno-rtti")
|
|
|
-endif()
|
|
|
+# Add spine-cpp
|
|
|
+add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../../spine-cpp ${CMAKE_BINARY_DIR}/spine-cpp-build)
|
|
|
|
|
|
# Define spine-sfml-cpp library
|
|
|
include_directories(src ${SFML_DIR}/include)
|