2013-11-02 14:44:54 +08:00
|
|
|
set(COCOS_BASE_SRC
|
|
|
|
CCAffineTransform.cpp
|
|
|
|
CCAutoreleasePool.cpp
|
|
|
|
CCGeometry.cpp
|
|
|
|
CCNS.cpp
|
|
|
|
CCObject.cpp
|
|
|
|
CCSet.cpp
|
|
|
|
CCArray.cpp
|
|
|
|
CCDictionary.cpp
|
|
|
|
CCString.cpp
|
|
|
|
CCDataVisitor.cpp
|
|
|
|
CCData.cpp
|
2013-12-04 16:18:22 +08:00
|
|
|
CCValue.cpp
|
2013-11-02 14:44:54 +08:00
|
|
|
etc1.cpp
|
|
|
|
s3tc.cpp
|
|
|
|
atitc.cpp
|
2013-12-05 10:19:51 +08:00
|
|
|
CCConsole.cpp
|
2013-11-02 14:44:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
)
|
|
|
|
|