-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
32 lines (25 loc) · 967 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 2.8)
project(Spriter2dX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/")
add_subdirectory(SpriterPlusPlus/spriterengine)
set(SOURCE_FILES
src/ccimagefile.cpp
src/ccsoundfile.cpp
src/ccfilefactory.cpp
src/ccsoundobjectinforeference.cpp
src/ccobjectfactory.cpp
src/cctriggerobjectinfo.cpp
src/ccboxinstanceinfo.cpp
src/ccboneinstanceinfo.cpp
src/ccpointinstanceinfo.cpp
src/tinyxmlspriterfileattributewrapper.cpp
src/tinyxmlspriterfiledocumentwrapper.cpp
src/tinyxmlspriterfileelementwrapper.cpp
src/AnimationNode.cpp
)
find_package(TINYXML2 REQUIRED)
find_package(Cocos2dX REQUIRED)
include_directories(${TINYXML2_INCLUDE_DIR} ${COCOS2D_INCLUDE_DIR})
add_library(spriter2dx STATIC ${SOURCE_FILES})
target_link_libraries(spriter2dx spriterengine)