2013-11-02 14:44:54 +08:00
|
|
|
set(COCOS_BASE_SRC
|
2014-04-09 21:32:06 +08:00
|
|
|
../deprecated/CCSet.cpp
|
|
|
|
../deprecated/CCArray.cpp
|
|
|
|
../deprecated/CCDictionary.cpp
|
|
|
|
../deprecated/CCString.cpp
|
2013-11-02 14:44:54 +08:00
|
|
|
CCAutoreleasePool.cpp
|
2014-04-30 08:37:36 +08:00
|
|
|
CCAutoreleasePool.h
|
|
|
|
CCConfiguration.cpp
|
|
|
|
CCConfiguration.h
|
|
|
|
CCConsole.cpp
|
|
|
|
CCConsole.h
|
|
|
|
CCData.cpp
|
|
|
|
CCData.h
|
|
|
|
CCDataVisitor.cpp
|
|
|
|
CCDataVisitor.h
|
|
|
|
CCDirector.cpp
|
|
|
|
CCDirector.h
|
|
|
|
CCEvent.cpp
|
|
|
|
CCEvent.h
|
|
|
|
CCEventAcceleration.cpp
|
|
|
|
CCEventAcceleration.h
|
|
|
|
CCEventCustom.cpp
|
|
|
|
CCEventDispatcher.cpp
|
|
|
|
CCEventKeyboard.cpp
|
|
|
|
CCEventListener.cpp
|
|
|
|
CCEventListenerAcceleration.cpp
|
|
|
|
CCEventListenerCustom.cpp
|
|
|
|
CCEventListenerKeyboard.cpp
|
|
|
|
CCEventListenerMouse.cpp
|
|
|
|
CCEventListenerTouch.cpp
|
|
|
|
CCEventMouse.cpp
|
|
|
|
CCEventTouch.cpp
|
2013-11-02 14:44:54 +08:00
|
|
|
CCNS.cpp
|
2014-04-30 08:37:36 +08:00
|
|
|
CCProfiling.cpp
|
2014-02-20 10:56:25 +08:00
|
|
|
CCRef.cpp
|
2014-04-30 08:37:36 +08:00
|
|
|
CCScheduler.cpp
|
|
|
|
CCTouch.cpp
|
2013-12-04 16:18:22 +08:00
|
|
|
CCValue.cpp
|
2014-04-30 08:37:36 +08:00
|
|
|
ZipUtils.cpp
|
|
|
|
atitc.cpp
|
|
|
|
base64.cpp
|
|
|
|
ccTypes.cpp
|
2013-11-02 14:44:54 +08:00
|
|
|
etc1.cpp
|
|
|
|
s3tc.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(cocosbase STATIC
|
|
|
|
${COCOS_BASE_SRC}
|
|
|
|
)
|
2013-11-04 14:49:42 +08:00
|
|
|
|
2014-01-08 16:58:36 +08:00
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(cocosbase
|
|
|
|
Ws2_32
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2013-11-04 14:49:42 +08:00
|
|
|
set_target_properties(cocosbase
|
|
|
|
PROPERTIES
|
2014-01-07 15:44:36 +08:00
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
2013-11-04 14:49:42 +08:00
|
|
|
)
|
|
|
|
|