mirror of https://github.com/axmolengine/axmol.git
TestCpp is ok.
This commit is contained in:
parent
e560de6e4e
commit
922924e1ab
|
@ -14,7 +14,7 @@ set(CMAKE_CXX_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
|
|||
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-std=c99")
|
||||
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11")
|
||||
|
||||
add_definitions(-DLINUX)
|
||||
add_definitions(-DLINUX -DCC_ENABLE_CHIPMUNK_INTEGRATION=1)
|
||||
|
||||
# architecture
|
||||
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
||||
|
@ -24,16 +24,22 @@ set(ARCH_DIR "32-bit")
|
|||
endif()
|
||||
|
||||
include_directories(
|
||||
.
|
||||
cocos
|
||||
cocos/audio/include
|
||||
cocos/2d
|
||||
cocos/2d/platform
|
||||
cocos/2d/platform/linux
|
||||
cocos/base
|
||||
cocos/physics
|
||||
cocos/editor-support
|
||||
cocos/math/kazmath/include
|
||||
external
|
||||
external/jpeg/include/linux
|
||||
external/tiff/include/linux
|
||||
external/webp/include/linux
|
||||
external/glfw3/include/linux
|
||||
external/curl/include/linux/${ARCH_DIR}
|
||||
external/tinyxml2
|
||||
external/unzip
|
||||
external/chipmunk/include/chipmunk
|
||||
|
@ -46,9 +52,12 @@ link_directories(
|
|||
${CMAKE_SOURCE_DIR}/external/tiff/prebuilt/linux/${ARCH_DIR}
|
||||
${CMAKE_SOURCE_DIR}/external/webp/prebuilt/linux/${ARCH_DIR}
|
||||
${CMAKE_SOURCE_DIR}/external/freetype2/prebuilt/linux/${ARCH_DIR}
|
||||
${CMAKE_SOURCE_DIR}/external/curl/prebuilt/linux/${ARCH_DIR}
|
||||
${CMAKE_SOURCE_DIR}/cocos/audio/third-party/fmod/lib64/api/lib
|
||||
)
|
||||
|
||||
set(COCOS_LIBRARIES
|
||||
audio
|
||||
cocos2d
|
||||
cocosbase
|
||||
chipmunk_static
|
||||
|
@ -75,18 +84,36 @@ add_subdirectory(cocos/math/kazmath)
|
|||
set(BUILD_STATIC 1)
|
||||
add_subdirectory(external/chipmunk/src)
|
||||
|
||||
# box2d library
|
||||
add_subdirectory(external/Box2D)
|
||||
|
||||
# unzip library
|
||||
add_subdirectory(external/unzip)
|
||||
|
||||
# tinyxml2 library
|
||||
add_subdirectory(external/tinyxml2)
|
||||
|
||||
# audio
|
||||
add_subdirectory(cocos/audio)
|
||||
|
||||
# cocos base library
|
||||
add_subdirectory(cocos/base)
|
||||
|
||||
# cocos 2d library
|
||||
add_subdirectory(cocos/2d)
|
||||
|
||||
add_subdirectory(cocos/gui)
|
||||
|
||||
add_subdirectory(cocos/network)
|
||||
|
||||
add_subdirectory(cocos/editor-support/spine)
|
||||
add_subdirectory(cocos/editor-support/cocosbuilder)
|
||||
add_subdirectory(cocos/editor-support/cocostudio)
|
||||
|
||||
add_subdirectory(extensions)
|
||||
|
||||
add_subdirectory(external/json)
|
||||
|
||||
# build samples
|
||||
add_subdirectory(samples)
|
||||
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
set(AUDIO_SRC
|
||||
linux/SimpleAudioEngineFMOD.cpp
|
||||
linux/FmodAudioPlayer.cpp
|
||||
)
|
||||
|
||||
include_directories(
|
||||
third-party/fmod/lib64/api/inc
|
||||
)
|
||||
|
||||
add_library(audio STATIC
|
||||
${AUDIO_SRC}
|
||||
)
|
||||
|
||||
target_link_libraries(audio
|
||||
fmodex64
|
||||
)
|
|
@ -0,0 +1,33 @@
|
|||
set(CCB_SRC
|
||||
CCBFileLoader.cpp
|
||||
CCMenuItemImageLoader.cpp
|
||||
CCBReader.cpp
|
||||
CCMenuItemLoader.cpp
|
||||
CCControlButtonLoader.cpp
|
||||
CCNodeLoader.cpp
|
||||
CCControlLoader.cpp
|
||||
CCNodeLoaderLibrary.cpp
|
||||
CCLabelBMFontLoader.cpp
|
||||
CCParticleSystemQuadLoader.cpp
|
||||
CCLabelTTFLoader.cpp
|
||||
CCScale9SpriteLoader.cpp
|
||||
CCLayerColorLoader.cpp
|
||||
CCScrollViewLoader.cpp
|
||||
CCLayerGradientLoader.cpp
|
||||
CCSpriteLoader.cpp
|
||||
CCLayerLoader.cpp
|
||||
CCBAnimationManager.cpp
|
||||
CCBKeyframe.cpp
|
||||
CCBSequence.cpp
|
||||
CCBSequenceProperty.cpp
|
||||
CCBValue.cpp
|
||||
CCNode+CCBRelativePositioning.cpp
|
||||
)
|
||||
|
||||
include_directories(
|
||||
..
|
||||
)
|
||||
|
||||
add_library(cocosbuilder STATIC
|
||||
${CCB_SRC}
|
||||
)
|
|
@ -0,0 +1,43 @@
|
|||
set(CS_SRC
|
||||
CCActionFrame.cpp
|
||||
CCActionFrameEasing.cpp
|
||||
CCActionManagerEx.cpp
|
||||
CCActionNode.cpp
|
||||
CCActionObject.cpp
|
||||
CCArmature.cpp
|
||||
CCBone.cpp
|
||||
CCArmatureAnimation.cpp
|
||||
CCProcessBase.cpp
|
||||
CCTween.cpp
|
||||
CCDatas.cpp
|
||||
CCBatchNode.cpp
|
||||
CCDecorativeDisplay.cpp
|
||||
CCDisplayFactory.cpp
|
||||
CCDisplayManager.cpp
|
||||
CCSkin.cpp
|
||||
CCColliderDetector.cpp
|
||||
CCArmatureDataManager.cpp
|
||||
CCArmatureDefine.cpp
|
||||
CCDataReaderHelper.cpp
|
||||
CCSpriteFrameCacheHelper.cpp
|
||||
CCTransformHelp.cpp
|
||||
CCTweenFunction.cpp
|
||||
CCUtilMath.cpp
|
||||
CCComAttribute.cpp
|
||||
CCComAudio.cpp
|
||||
CCComController.cpp
|
||||
CCComRender.cpp
|
||||
CCInputDelegate.cpp
|
||||
CSContentJsonDictionary.cpp
|
||||
DictionaryHelper.cpp
|
||||
CCSGUIReader.cpp
|
||||
CCSSceneReader.cpp
|
||||
)
|
||||
|
||||
include_directories(
|
||||
..
|
||||
)
|
||||
|
||||
add_library(cocostudio STATIC
|
||||
${CS_SRC}
|
||||
)
|
|
@ -0,0 +1,31 @@
|
|||
set(SPINE_SRC
|
||||
Animation.cpp
|
||||
AnimationState.cpp
|
||||
AnimationStateData.cpp
|
||||
Atlas.cpp
|
||||
AtlasAttachmentLoader.cpp
|
||||
Attachment.cpp
|
||||
AttachmentLoader.cpp
|
||||
Bone.cpp
|
||||
BoneData.cpp
|
||||
Json.cpp
|
||||
RegionAttachment.cpp
|
||||
Skeleton.cpp
|
||||
SkeletonData.cpp
|
||||
SkeletonJson.cpp
|
||||
Skin.cpp
|
||||
Slot.cpp
|
||||
SlotData.cpp
|
||||
extension.cpp
|
||||
spine-cocos2dx.cpp
|
||||
CCSkeleton.cpp
|
||||
CCSkeletonAnimation.cpp
|
||||
)
|
||||
|
||||
include_directories(
|
||||
..
|
||||
)
|
||||
|
||||
add_library(spine STATIC
|
||||
${SPINE_SRC}
|
||||
)
|
|
@ -0,0 +1,29 @@
|
|||
set(GUI_SRC
|
||||
UIRootWidget.cpp
|
||||
UIWidget.cpp
|
||||
Layout.cpp
|
||||
LayoutParameter.cpp
|
||||
UILayoutDefine.cpp
|
||||
CocosGUI.cpp
|
||||
UIHelper.cpp
|
||||
UIInputManager.cpp
|
||||
UILayer.cpp
|
||||
UIDragPanel.cpp
|
||||
UIListView.cpp
|
||||
UIPageView.cpp
|
||||
UIScrollView.cpp
|
||||
UIButton.cpp
|
||||
UICheckBox.cpp
|
||||
UIImageView.cpp
|
||||
UILabel.cpp
|
||||
UILabelAtlas.cpp
|
||||
UILabelBMFont.cpp
|
||||
UILoadingBar.cpp
|
||||
UISlider.cpp
|
||||
UITextField.cpp
|
||||
)
|
||||
|
||||
add_library(gui STATIC
|
||||
${GUI_SRC}
|
||||
)
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
set(NETWORK_SRC
|
||||
HttpClient.cpp
|
||||
SocketIO.cpp
|
||||
)
|
||||
|
||||
add_library(network STATIC
|
||||
${NETWORK_SRC}
|
||||
)
|
|
@ -0,0 +1,34 @@
|
|||
set(EXTENSIONS_SRC
|
||||
assets-manager/AssetsManager.cpp
|
||||
GUI/CCControlExtension/CCControl.cpp
|
||||
GUI/CCControlExtension/CCControlButton.cpp
|
||||
GUI/CCControlExtension/CCControlColourPicker.cpp
|
||||
GUI/CCControlExtension/CCControlHuePicker.cpp
|
||||
GUI/CCControlExtension/CCControlPotentiometer.cpp
|
||||
GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp
|
||||
GUI/CCControlExtension/CCControlSlider.cpp
|
||||
GUI/CCControlExtension/CCControlStepper.cpp
|
||||
GUI/CCControlExtension/CCControlSwitch.cpp
|
||||
GUI/CCControlExtension/CCControlUtils.cpp
|
||||
GUI/CCControlExtension/CCInvocation.cpp
|
||||
GUI/CCControlExtension/CCScale9Sprite.cpp
|
||||
GUI/CCEditBox/CCEditBox.cpp
|
||||
GUI/CCEditBox/CCEditBoxImplAndroid.cpp
|
||||
GUI/CCEditBox/CCEditBoxImplNone.cpp
|
||||
GUI/CCEditBox/CCEditBoxImplTizen.cpp
|
||||
GUI/CCEditBox/CCEditBoxImplWin.cpp
|
||||
GUI/CCScrollView/CCScrollView.cpp
|
||||
GUI/CCScrollView/CCSorting.cpp
|
||||
GUI/CCScrollView/CCTableView.cpp
|
||||
GUI/CCScrollView/CCTableViewCell.cpp
|
||||
physics-nodes/CCPhysicsDebugNode.cpp
|
||||
physics-nodes/CCPhysicsSprite.cpp
|
||||
)
|
||||
|
||||
include_directories(
|
||||
..
|
||||
)
|
||||
|
||||
add_library(extensions STATIC
|
||||
${EXTENSIONS_SRC}
|
||||
)
|
|
@ -0,0 +1,55 @@
|
|||
set(BOX2D_SRC
|
||||
Collision/Shapes/b2ChainShape.cpp
|
||||
Collision/Shapes/b2CircleShape.cpp
|
||||
Collision/Shapes/b2EdgeShape.cpp
|
||||
Collision/Shapes/b2PolygonShape.cpp
|
||||
Collision/b2BroadPhase.cpp
|
||||
Collision/b2CollideCircle.cpp
|
||||
Collision/b2CollideEdge.cpp
|
||||
Collision/b2CollidePolygon.cpp
|
||||
Collision/b2Collision.cpp
|
||||
Collision/b2Distance.cpp
|
||||
Collision/b2DynamicTree.cpp
|
||||
Collision/b2TimeOfImpact.cpp
|
||||
Common/b2BlockAllocator.cpp
|
||||
Common/b2Draw.cpp
|
||||
Common/b2Math.cpp
|
||||
Common/b2Settings.cpp
|
||||
Common/b2StackAllocator.cpp
|
||||
Common/b2Timer.cpp
|
||||
Dynamics/Contacts/b2ChainAndCircleContact.cpp
|
||||
Dynamics/Contacts/b2ChainAndPolygonContact.cpp
|
||||
Dynamics/Contacts/b2CircleContact.cpp
|
||||
Dynamics/Contacts/b2Contact.cpp
|
||||
Dynamics/Contacts/b2ContactSolver.cpp
|
||||
Dynamics/Contacts/b2EdgeAndCircleContact.cpp
|
||||
Dynamics/Contacts/b2EdgeAndPolygonContact.cpp
|
||||
Dynamics/Contacts/b2PolygonAndCircleContact.cpp
|
||||
Dynamics/Contacts/b2PolygonContact.cpp
|
||||
Dynamics/Joints/b2DistanceJoint.cpp
|
||||
Dynamics/Joints/b2FrictionJoint.cpp
|
||||
Dynamics/Joints/b2GearJoint.cpp
|
||||
Dynamics/Joints/b2Joint.cpp
|
||||
Dynamics/Joints/b2MouseJoint.cpp
|
||||
Dynamics/Joints/b2PrismaticJoint.cpp
|
||||
Dynamics/Joints/b2PulleyJoint.cpp
|
||||
Dynamics/Joints/b2RevoluteJoint.cpp
|
||||
Dynamics/Joints/b2RopeJoint.cpp
|
||||
Dynamics/Joints/b2WeldJoint.cpp
|
||||
Dynamics/Joints/b2WheelJoint.cpp
|
||||
Dynamics/b2Body.cpp
|
||||
Dynamics/b2ContactManager.cpp
|
||||
Dynamics/b2Fixture.cpp
|
||||
Dynamics/b2Island.cpp
|
||||
Dynamics/b2World.cpp
|
||||
Dynamics/b2WorldCallbacks.cpp
|
||||
Rope/b2Rope.cpp
|
||||
)
|
||||
|
||||
include_directories(
|
||||
..
|
||||
)
|
||||
|
||||
add_library(box2d STATIC
|
||||
${BOX2D_SRC}
|
||||
)
|
|
@ -0,0 +1,14 @@
|
|||
set(JSONCPP_SRC
|
||||
json_reader.cpp
|
||||
json_value.cpp
|
||||
json_writer.cpp
|
||||
)
|
||||
|
||||
include_directories(
|
||||
|
||||
)
|
||||
|
||||
add_library(jsoncpp STATIC
|
||||
${JSONCPP_SRC}
|
||||
)
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
add_subdirectory(Cpp/HelloCpp)
|
||||
#add_subdirectory(Cpp/HelloCpp)
|
||||
|
||||
add_subdirectory(Cpp/TestCpp)
|
||||
|
||||
|
|
|
@ -13,12 +13,10 @@ add_executable(${SAMPLE_NAME}
|
|||
|
||||
target_link_libraries(${SAMPLE_NAME} ${COCOS_LIBRARIES})
|
||||
|
||||
set(SAMPLE_BIN_DIR ${CMAKE_BINARY_DIR}/bin)
|
||||
set(SAMPLE_BIN_DIR "${CMAKE_BINARY_DIR}/bin/${SAMPLE_NAME}")
|
||||
|
||||
SET_TARGET_PROPERTIES(${SAMPLE_NAME} PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${SAMPLE_BIN_DIR}/HelloCpp")
|
||||
RUNTIME_OUTPUT_DIRECTORY "${SAMPLE_BIN_DIR}")
|
||||
|
||||
message(STATUS "Hello.........." ${CMAKE_BINARY_DIR})
|
||||
|
||||
COPY_RES( ${SAMPLE_NAME} "Resources/*" "${SAMPLE_BIN_DIR}/HelloCpp")
|
||||
COPY_RES( ${SAMPLE_NAME} "Resources/*" "${SAMPLE_BIN_DIR}")
|
||||
|
||||
|
|
|
@ -0,0 +1,165 @@
|
|||
set(SAMPLE_NAME testcpp)
|
||||
|
||||
set(SAMPLE_SRC
|
||||
Classes/AccelerometerTest/AccelerometerTest.cpp
|
||||
Classes/ActionManagerTest/ActionManagerTest.cpp
|
||||
Classes/ActionsEaseTest/ActionsEaseTest.cpp
|
||||
Classes/ActionsProgressTest/ActionsProgressTest.cpp
|
||||
Classes/ActionsTest/ActionsTest.cpp
|
||||
Classes/Box2DTest/Box2dTest.cpp
|
||||
Classes/Box2DTestBed/Box2dView.cpp
|
||||
Classes/Box2DTestBed/GLES-Render.cpp
|
||||
Classes/Box2DTestBed/Test.cpp
|
||||
Classes/Box2DTestBed/TestEntries.cpp
|
||||
Classes/BugsTest/Bug-1159.cpp
|
||||
Classes/BugsTest/Bug-1174.cpp
|
||||
Classes/BugsTest/Bug-350.cpp
|
||||
Classes/BugsTest/Bug-422.cpp
|
||||
Classes/BugsTest/Bug-458/Bug-458.cpp
|
||||
Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp
|
||||
Classes/BugsTest/Bug-624.cpp
|
||||
Classes/BugsTest/Bug-886.cpp
|
||||
Classes/BugsTest/Bug-899.cpp
|
||||
Classes/BugsTest/Bug-914.cpp
|
||||
Classes/BugsTest/BugsTest.cpp
|
||||
Classes/ChipmunkTest/ChipmunkTest.cpp
|
||||
Classes/ClickAndMoveTest/ClickAndMoveTest.cpp
|
||||
Classes/ClippingNodeTest/ClippingNodeTest.cpp
|
||||
Classes/CocosDenshionTest/CocosDenshionTest.cpp
|
||||
Classes/CurlTest/CurlTest.cpp
|
||||
Classes/CurrentLanguageTest/CurrentLanguageTest.cpp
|
||||
Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp
|
||||
Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp
|
||||
Classes/EffectsTest/EffectsTest.cpp
|
||||
Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.cpp
|
||||
Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.cpp
|
||||
Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.cpp
|
||||
Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp
|
||||
Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.cpp
|
||||
Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.cpp
|
||||
Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.cpp
|
||||
Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.cpp
|
||||
Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.cpp
|
||||
Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.cpp
|
||||
Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.cpp
|
||||
Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.cpp
|
||||
Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.cpp
|
||||
Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.cpp
|
||||
Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.cpp
|
||||
Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp
|
||||
Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp
|
||||
Classes/ExtensionsTest/ExtensionsTest.cpp
|
||||
Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.cpp
|
||||
Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp
|
||||
Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.cpp
|
||||
Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.cpp
|
||||
Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.cpp
|
||||
Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.cpp
|
||||
Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.cpp
|
||||
Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.cpp
|
||||
Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UIScene.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UIDragPanelTest/UIDragPanelTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UILabelAtlasTest/UILabelAtlasTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UILabelBMFontTest/UILabelBMFontTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UILabelTest/UILabelTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UINodeContainerTest/UINodeContainerTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UIPanelTest/UIPanelTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UITextAreaTest/UITextAreaTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UITextButtonTest/UITextButtonTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp
|
||||
Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.cpp
|
||||
Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.cpp
|
||||
Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp
|
||||
Classes/FontTest/FontTest.cpp
|
||||
Classes/IntervalTest/IntervalTest.cpp
|
||||
Classes/KeyboardTest/KeyboardTest.cpp
|
||||
Classes/InputTest/MouseTest.cpp
|
||||
Classes/KeypadTest/KeypadTest.cpp
|
||||
Classes/LabelTest/LabelTest.cpp
|
||||
Classes/LabelTest/LabelTestNew.cpp
|
||||
Classes/LayerTest/LayerTest.cpp
|
||||
Classes/MenuTest/MenuTest.cpp
|
||||
Classes/MotionStreakTest/MotionStreakTest.cpp
|
||||
Classes/MutiTouchTest/MutiTouchTest.cpp
|
||||
Classes/NodeTest/NodeTest.cpp
|
||||
Classes/ParallaxTest/ParallaxTest.cpp
|
||||
Classes/ParticleTest/ParticleTest.cpp
|
||||
Classes/PerformanceTest/PerformanceAllocTest.cpp
|
||||
Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp
|
||||
Classes/PerformanceTest/PerformanceParticleTest.cpp
|
||||
Classes/PerformanceTest/PerformanceSpriteTest.cpp
|
||||
Classes/PerformanceTest/PerformanceTest.cpp
|
||||
Classes/PerformanceTest/PerformanceTextureTest.cpp
|
||||
Classes/PerformanceTest/PerformanceTouchesTest.cpp
|
||||
Classes/PhysicsTest/PhysicsTest.cpp
|
||||
Classes/RenderTextureTest/RenderTextureTest.cpp
|
||||
Classes/RotateWorldTest/RotateWorldTest.cpp
|
||||
Classes/SceneTest/SceneTest.cpp
|
||||
Classes/SchedulerTest/SchedulerTest.cpp
|
||||
Classes/ShaderTest/ShaderTest.cpp
|
||||
Classes/ShaderTest/ShaderTest2.cpp
|
||||
Classes/SpriteTest/SpriteTest.cpp
|
||||
Classes/TextInputTest/TextInputTest.cpp
|
||||
Classes/Texture2dTest/Texture2dTest.cpp
|
||||
Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp
|
||||
Classes/TextureCacheTest/TextureCacheTest.cpp
|
||||
Classes/TileMapTest/TileMapTest.cpp
|
||||
Classes/TouchesTest/Ball.cpp
|
||||
Classes/TouchesTest/Paddle.cpp
|
||||
Classes/TouchesTest/TouchesTest.cpp
|
||||
Classes/TransitionsTest/TransitionsTest.cpp
|
||||
Classes/UserDefaultTest/UserDefaultTest.cpp
|
||||
Classes/ZwoptexTest/ZwoptexTest.cpp
|
||||
Classes/FileUtilsTest/FileUtilsTest.cpp
|
||||
Classes/SpineTest/SpineTest.cpp
|
||||
Classes/DataVisitorTest/DataVisitorTest.cpp
|
||||
Classes/ConfigurationTest/ConfigurationTest.cpp
|
||||
Classes/controller.cpp
|
||||
Classes/testBasic.cpp
|
||||
Classes/AppDelegate.cpp
|
||||
Classes/BaseTest.cpp
|
||||
Classes/VisibleRect.cpp
|
||||
proj.linux/main.cpp
|
||||
)
|
||||
|
||||
include_directories(
|
||||
Classes
|
||||
)
|
||||
|
||||
# add the executable
|
||||
add_executable(${SAMPLE_NAME}
|
||||
${SAMPLE_SRC}
|
||||
)
|
||||
|
||||
target_link_libraries(${SAMPLE_NAME}
|
||||
gui
|
||||
network
|
||||
spine
|
||||
cocostudio
|
||||
cocosbuilder
|
||||
extensions
|
||||
${COCOS_LIBRARIES}
|
||||
box2d
|
||||
jsoncpp
|
||||
curl
|
||||
rt
|
||||
)
|
||||
|
||||
set(SAMPLE_BIN_DIR "${CMAKE_BINARY_DIR}/bin/${SAMPLE_NAME}")
|
||||
|
||||
SET_TARGET_PROPERTIES(${SAMPLE_NAME} PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${SAMPLE_BIN_DIR}")
|
||||
|
||||
COPY_RES( ${SAMPLE_NAME} "Resources/*" "${SAMPLE_BIN_DIR}")
|
||||
|
Loading…
Reference in New Issue