Started a CMake-based build system

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9338 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
funto66 2011-07-24 14:29:16 +00:00
parent 0267379400
commit 05421e944a
3 changed files with 821 additions and 0 deletions

516
CMakeLists.txt Normal file
View File

@ -0,0 +1,516 @@
# CMakeLists.txt - root CMakeLists for the SuperTuxKart project
# TODO: fribidi
# TODO: DEBUG needs to be defined => fix that in code
# TODO: make Ogg Vorbis optional (doesn't seem to work with autotools either!)
# TODO: allow to disable asserts (NDEBUG?)
cmake_minimum_required(VERSION 2.8.1)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) # allow endif()
project(SuperTuxKart)
#DEBUG
#set(CMAKE_VERBOSE_MAKEFILE TRUE)
set(STK_SOURCE_DIR "src")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin")
set(IRRLICHT_DIR "/home/funto/projets/stk/irrlicht-trunk")
# Build the Bullet physics library
add_subdirectory("${STK_SOURCE_DIR}/bullet")
# Build the ENet UDP network library
add_subdirectory("${STK_SOURCE_DIR}/enet")
# Set include and lib paths
include_directories("${IRRLICHT_DIR}/include")
include_directories("${STK_SOURCE_DIR}")
include_directories("${STK_SOURCE_DIR}/enet/include")
include_directories("${STK_SOURCE_DIR}/bullet/src")
link_directories("${IRRLICHT_DIR}/lib/Linux")
link_directories("${STK_SOURCE_DIR}/bullet")
# Set some compiler options
if(UNIX)
add_definitions(-Wall)
#add_definitions(-O3)
endif()
add_definitions(-DHAVE_OGGVORBIS)
add_definitions(-DDEBUG)
# TODO
# include_directories("/usr/include/freetype2")
#~ src/font_tool/CFontTool.cpp
#~ src/font_tool/CFontTool.h
#~ src/font_tool/CVectorFontTool.h
#~ src/font_tool/main.cpp
# Build the final executable
add_executable(supertuxkart
src/main.cpp
src/main_loop.cpp
src/main_loop.hpp
src/addons/addon.cpp
src/addons/addon.hpp
src/addons/addons_manager.cpp
src/addons/addons_manager.hpp
src/addons/network_http.cpp
src/addons/network_http.hpp
src/addons/news_manager.cpp
src/addons/news_manager.hpp
src/addons/request.cpp
src/addons/request.hpp
src/addons/zip.cpp
src/addons/zip.hpp
src/animations/animation_base.cpp
src/animations/animation_base.hpp
src/animations/billboard_animation.cpp
src/animations/billboard_animation.hpp
src/animations/ipo.cpp
src/animations/ipo.hpp
src/animations/three_d_animation.cpp
src/animations/three_d_animation.hpp
src/audio/music.hpp
src/audio/music_information.cpp
src/audio/music_information.hpp
src/audio/music_manager.cpp
src/audio/music_manager.hpp
src/audio/music_ogg.cpp
src/audio/music_ogg.hpp
src/audio/sfx_base.hpp
src/audio/sfx_buffer.cpp
src/audio/sfx_buffer.hpp
src/audio/sfx_manager.cpp
src/audio/sfx_manager.hpp
src/audio/sfx_openal.cpp
src/audio/sfx_openal.hpp
src/challenges/challenge.cpp
src/challenges/challenge_data.cpp
src/challenges/challenge_data.hpp
src/challenges/challenge.hpp
src/challenges/unlock_manager.cpp
src/challenges/unlock_manager.hpp
src/config/device_config.cpp
src/config/device_config.hpp
src/config/player.hpp
src/config/stk_config.cpp
src/config/stk_config.hpp
src/config/user_config.cpp
src/config/user_config.hpp
src/enet/include/enet/callbacks.h
src/enet/include/enet/enet.h
src/enet/include/enet/list.h
src/enet/include/enet/protocol.h
src/enet/include/enet/time.h
src/enet/include/enet/types.h
src/enet/include/enet/unix.h
src/enet/include/enet/utility.h
src/enet/include/enet/win32.h
src/graphics/camera.cpp
src/graphics/camera.hpp
src/graphics/CBatchingMesh.cpp
src/graphics/CBatchingMesh.hpp
src/graphics/explosion.cpp
src/graphics/explosion.hpp
src/graphics/hardware_skinning.cpp
src/graphics/hardware_skinning.hpp
src/graphics/irr_driver.cpp
src/graphics/irr_driver.hpp
src/graphics/lod_node.cpp
src/graphics/lod_node.hpp
src/graphics/material.cpp
src/graphics/material.hpp
src/graphics/material_manager.cpp
src/graphics/material_manager.hpp
src/graphics/mesh_tools.cpp
src/graphics/mesh_tools.hpp
src/graphics/moving_texture.cpp
src/graphics/moving_texture.hpp
src/graphics/particle_emitter.cpp
src/graphics/particle_emitter.hpp
src/graphics/particle_kind.cpp
src/graphics/particle_kind.hpp
src/graphics/particle_kind_manager.cpp
src/graphics/particle_kind_manager.hpp
src/graphics/per_camera_node.cpp
src/graphics/per_camera_node.hpp
src/graphics/post_processing.cpp
src/graphics/post_processing.hpp
src/graphics/rain.cpp
src/graphics/rain.hpp
src/graphics/shadow.cpp
src/graphics/shadow.hpp
src/graphics/skid_marks.cpp
src/graphics/skid_marks.hpp
src/graphics/slip_stream.cpp
src/graphics/slip_stream.hpp
src/graphics/stars.cpp
src/graphics/stars.hpp
src/guiengine/abstract_state_manager.cpp
src/guiengine/abstract_state_manager.hpp
src/guiengine/abstract_top_level_container.cpp
src/guiengine/abstract_top_level_container.hpp
src/guiengine/CGUISpriteBank.cpp
src/guiengine/CGUISpriteBank.h
src/guiengine/engine.cpp
src/guiengine/event_handler.cpp
src/guiengine/event_handler.hpp
src/guiengine/layout_manager.cpp
src/guiengine/layout_manager.hpp
src/guiengine/modaldialog.cpp
src/guiengine/modaldialog.hpp
src/guiengine/scalable_font.cpp
src/guiengine/scalable_font.hpp
src/guiengine/screen.cpp
src/guiengine/screen.hpp
src/guiengine/screen_loader.cpp
src/guiengine/skin.cpp
src/guiengine/skin.hpp
src/guiengine/widget.cpp
src/guiengine/widget.hpp
src/guiengine/widgets/bubble_widget.cpp
src/guiengine/widgets/bubble_widget.hpp
src/guiengine/widgets/button_widget.cpp
src/guiengine/widgets/button_widget.hpp
src/guiengine/widgets/CGUIEditBox.cpp
src/guiengine/widgets/CGUIEditBox.h
src/guiengine/widgets/check_box_widget.cpp
src/guiengine/widgets/dynamic_ribbon_widget.cpp
src/guiengine/widgets/dynamic_ribbon_widget.hpp
src/guiengine/widgets.hpp
src/guiengine/widgets/icon_button_widget.cpp
src/guiengine/widgets/icon_button_widget.hpp
src/guiengine/widgets/label_widget.cpp
src/guiengine/widgets/label_widget.hpp
src/guiengine/widgets/list_widget.cpp
src/guiengine/widgets/list_widget.hpp
src/guiengine/widgets/model_view_widget.cpp
src/guiengine/widgets/model_view_widget.hpp
src/guiengine/widgets/progress_bar_widget.cpp
src/guiengine/widgets/progress_bar_widget.hpp
src/guiengine/widgets/ribbon_widget.cpp
src/guiengine/widgets/ribbon_widget.hpp
src/guiengine/widgets/spinner_widget.cpp
src/guiengine/widgets/spinner_widget.hpp
src/guiengine/widgets/text_box_widget.cpp
src/guiengine/widgets/text_box_widget.hpp
src/input/binding.cpp
src/input/binding.hpp
src/input/device_manager.cpp
src/input/device_manager.hpp
src/input/input_device.cpp
src/input/input_device.hpp
src/input/input.hpp
src/input/input_manager.cpp
src/input/input_manager.hpp
src/io/file_manager.cpp
src/io/file_manager.hpp
src/io/xml_node.cpp
src/io/xml_node.hpp
src/io/xml_writer.cpp
src/io/xml_writer.hpp
src/items/attachment.cpp
src/items/attachment.hpp
src/items/attachment_manager.cpp
src/items/attachment_manager.hpp
src/items/attachment_plugin.hpp
src/items/bowling.cpp
src/items/bowling.hpp
src/items/cake.cpp
src/items/cake.hpp
src/items/flyable.cpp
src/items/flyable.hpp
src/items/item.cpp
src/items/item.hpp
src/items/item_manager.cpp
src/items/item_manager.hpp
src/items/plunger.cpp
src/items/plunger.hpp
src/items/powerup.cpp
src/items/powerup.hpp
src/items/powerup_manager.cpp
src/items/powerup_manager.hpp
src/items/projectile_manager.cpp
src/items/projectile_manager.hpp
src/items/rubber_ball.cpp
src/items/rubber_ball.hpp
src/items/rubber_band.cpp
src/items/rubber_band.hpp
src/items/swatter.cpp
src/items/swatter.hpp
src/karts/controller/ai_base_controller.cpp
src/karts/controller/ai_base_controller.hpp
src/karts/controller/controller.cpp
src/karts/controller/controller.hpp
src/karts/controller/default_ai_controller.cpp
src/karts/controller/default_ai_controller.hpp
src/karts/controller/end_controller.cpp
src/karts/controller/end_controller.hpp
src/karts/controller/kart_control.hpp
src/karts/controller/new_ai_controller.cpp
src/karts/controller/new_ai_controller.hpp
src/karts/controller/player_controller.cpp
src/karts/controller/player_controller.hpp
src/karts/emergency_animation.cpp
src/karts/emergency_animation.hpp
src/karts/kart.cpp
src/karts/kart.hpp
src/karts/kart_model.cpp
src/karts/kart_model.hpp
src/karts/kart_properties.cpp
src/karts/kart_properties.hpp
src/karts/kart_properties_manager.cpp
src/karts/kart_properties_manager.hpp
src/karts/max_speed.cpp
src/karts/max_speed.hpp
src/karts/moveable.cpp
src/karts/moveable.hpp
src/modes/follow_the_leader.cpp
src/modes/follow_the_leader.hpp
src/modes/game_tutorial.cpp
src/modes/game_tutorial.hpp
src/modes/linear_world.cpp
src/modes/linear_world.hpp
src/modes/profile_world.cpp
src/modes/profile_world.hpp
src/modes/standard_race.cpp
src/modes/standard_race.hpp
src/modes/three_strikes_battle.cpp
src/modes/three_strikes_battle.hpp
src/modes/tutorial_race.cpp
src/modes/tutorial_race.hpp
src/modes/world.cpp
src/modes/world.hpp
src/modes/world_status.cpp
src/modes/world_status.hpp
src/modes/world_with_rank.cpp
src/modes/world_with_rank.hpp
src/network/character_confirm_message.hpp
src/network/character_info_message.hpp
src/network/character_selected_message.hpp
src/network/connect_message.cpp
src/network/connect_message.hpp
src/network/flyable_info.hpp
src/network/item_info.hpp
src/network/kart_control_message.cpp
src/network/kart_control_message.hpp
src/network/kart_update_message.cpp
src/network/kart_update_message.hpp
src/network/message.cpp
src/network/message.hpp
src/network/network_kart.cpp
src/network/network_kart.hpp
src/network/network_manager.cpp
src/network/network_manager.hpp
src/network/num_players_message.hpp
src/network/race_info_message.cpp
src/network/race_info_message.hpp
src/network/race_result_ack_message.hpp
src/network/race_result_message.cpp
src/network/race_result_message.hpp
src/network/race_start_message.hpp
src/network/race_state.cpp
src/network/race_state.hpp
src/network/remote_kart_info.hpp
src/network/world_loaded_message.hpp
src/physics/btKart.cpp
src/physics/btKart.hpp
src/physics/btKartRaycast.cpp
src/physics/btKartRaycast.hpp
src/physics/btUprightConstraint.cpp
src/physics/btUprightConstraint.hpp
src/physics/irr_debug_drawer.cpp
src/physics/irr_debug_drawer.hpp
src/physics/kart_motion_state.hpp
src/physics/physical_object.cpp
src/physics/physical_object.hpp
src/physics/physics.cpp
src/physics/physics.hpp
src/physics/triangle_mesh.cpp
src/physics/triangle_mesh.hpp
src/physics/user_pointer.hpp
src/race/grand_prix_data.cpp
src/race/grand_prix_data.hpp
src/race/grand_prix_manager.cpp
src/race/grand_prix_manager.hpp
src/race/highscore_manager.cpp
src/race/highscore_manager.hpp
src/race/highscores.cpp
src/race/highscores.hpp
src/race/history.cpp
src/race/history.hpp
src/race/race_manager.cpp
src/race/race_manager.hpp
src/replay/replay_base.cpp
src/replay/replay_base.hpp
src/replay/replay_buffers.cpp
src/replay/replay_buffers.hpp
src/replay/replay_buffer_tpl.hpp
src/replay/replay_player.cpp
src/replay/replay_player.hpp
src/replay/replay_recorder.cpp
src/replay/replay_recorder.hpp
src/states_screens/addons_screen.cpp
src/states_screens/addons_screen.hpp
src/states_screens/arenas_screen.cpp
src/states_screens/arenas_screen.hpp
src/states_screens/challenges.cpp
src/states_screens/challenges.hpp
src/states_screens/credits.cpp
src/states_screens/credits.hpp
src/states_screens/dialogs/add_device_dialog.cpp
src/states_screens/dialogs/add_device_dialog.hpp
src/states_screens/dialogs/addons_loading.cpp
src/states_screens/dialogs/addons_loading.hpp
src/states_screens/dialogs/confirm_resolution_dialog.cpp
src/states_screens/dialogs/confirm_resolution_dialog.hpp
src/states_screens/dialogs/enter_player_name_dialog.cpp
src/states_screens/dialogs/enter_player_name_dialog.hpp
src/states_screens/dialogs/gp_info_dialog.cpp
src/states_screens/dialogs/gp_info_dialog.hpp
src/states_screens/dialogs/message_dialog.cpp
src/states_screens/dialogs/message_dialog.hpp
src/states_screens/dialogs/player_info_dialog.cpp
src/states_screens/dialogs/player_info_dialog.hpp
src/states_screens/dialogs/press_a_key_dialog.cpp
src/states_screens/dialogs/press_a_key_dialog.hpp
src/states_screens/dialogs/race_over_dialog.cpp
src/states_screens/dialogs/race_over_dialog.hpp
src/states_screens/dialogs/race_paused_dialog.cpp
src/states_screens/dialogs/race_paused_dialog.hpp
src/states_screens/dialogs/track_info_dialog.cpp
src/states_screens/dialogs/track_info_dialog.hpp
src/states_screens/feature_unlocked.cpp
src/states_screens/feature_unlocked.hpp
src/states_screens/grand_prix_lose.cpp
src/states_screens/grand_prix_lose.hpp
src/states_screens/grand_prix_win.cpp
src/states_screens/grand_prix_win.hpp
src/states_screens/help_screen_1.cpp
src/states_screens/help_screen_1.hpp
src/states_screens/help_screen_2.cpp
src/states_screens/help_screen_2.hpp
src/states_screens/help_screen_3.cpp
src/states_screens/help_screen_3.hpp
src/states_screens/help_screen_4.cpp
src/states_screens/help_screen_4.hpp
src/states_screens/kart_selection.cpp
src/states_screens/kart_selection.hpp
src/states_screens/main_menu_screen.cpp
src/states_screens/main_menu_screen.hpp
src/states_screens/minimal_race_gui.cpp
src/states_screens/minimal_race_gui.hpp
src/states_screens/options_screen_audio.cpp
src/states_screens/options_screen_audio.hpp
src/states_screens/options_screen_input2.cpp
src/states_screens/options_screen_input2.hpp
src/states_screens/options_screen_input.cpp
src/states_screens/options_screen_input.hpp
src/states_screens/options_screen_players.cpp
src/states_screens/options_screen_players.hpp
src/states_screens/options_screen_ui.cpp
src/states_screens/options_screen_video.cpp
src/states_screens/options_screen_video.hpp
src/states_screens/race_gui_base.cpp
src/states_screens/race_gui_base.hpp
src/states_screens/race_gui.cpp
src/states_screens/race_gui.hpp
src/states_screens/race_result_gui.cpp
src/states_screens/race_result_gui.hpp
src/states_screens/race_setup_screen.cpp
src/states_screens/race_setup_screen.hpp
src/states_screens/state_manager.cpp
src/states_screens/state_manager.hpp
src/states_screens/tracks_screen.cpp
src/states_screens/tracks_screen.hpp
src/states_screens/tutorial_screen.cpp
src/states_screens/tutorial_screen.hpp
src/tinygettext/dictionary.cpp
src/tinygettext/dictionary.hpp
src/tinygettext/dictionary_manager.cpp
src/tinygettext/file_system.hpp
src/tinygettext/iconv.cpp
src/tinygettext/iconv.hpp
src/tinygettext/language.cpp
src/tinygettext/language.hpp
src/tinygettext/log.cpp
src/tinygettext/log.hpp
src/tinygettext/log_stream.hpp
src/tinygettext/plural_forms.cpp
src/tinygettext/plural_forms.hpp
src/tinygettext/po_parser.cpp
src/tinygettext/po_parser.hpp
src/tinygettext/stk_file_system.cpp
src/tinygettext/stk_file_system.hpp
src/tinygettext/tinygettext.cpp
src/tinygettext/tinygettext.hpp
src/tracks/ambient_light_sphere.cpp
src/tracks/ambient_light_sphere.hpp
src/tracks/bezier_curve.cpp
src/tracks/bezier_curve.hpp
src/tracks/check_lap.cpp
src/tracks/check_lap.hpp
src/tracks/check_line.cpp
src/tracks/check_line.hpp
src/tracks/check_manager.cpp
src/tracks/check_manager.hpp
src/tracks/check_sphere.cpp
src/tracks/check_sphere.hpp
src/tracks/check_structure.cpp
src/tracks/check_structure.hpp
src/tracks/graph_node.cpp
src/tracks/graph_node.hpp
src/tracks/quad.cpp
src/tracks/quad_graph.cpp
src/tracks/quad_graph.hpp
src/tracks/quad.hpp
src/tracks/quad_set.cpp
src/tracks/quad_set.hpp
src/tracks/terrain_info.cpp
src/tracks/terrain_info.hpp
src/tracks/track.cpp
src/tracks/track_manager.cpp
src/tracks/track_manager.hpp
src/tracks/track_object.cpp
src/tracks/track_object.hpp
src/tracks/track_object_manager.cpp
src/tracks/track_object_manager.hpp
src/tutorial/tutorial.cpp
src/tutorial/tutorial_data.cpp
src/tutorial/tutorial_data.hpp
src/tutorial/tutorial.hpp
src/tutorial/tutorial_manager.cpp
src/tutorial/tutorial_manager.hpp
src/utils/aligned_array.hpp
src/utils/constants.cpp
src/utils/constants.hpp
src/utils/no_copy.hpp
src/utils/profiler.cpp
src/utils/profiler.hpp
src/utils/ptr_vector.hpp
src/utils/random_generator.cpp
src/utils/random_generator.hpp
src/utils/string_utils.cpp
src/utils/string_utils.hpp
src/utils/synchronised.hpp
src/utils/time.hpp
src/utils/translation.cpp
src/utils/translation.hpp
src/utils/utf8/core.h
src/utils/utf8.h
src/utils/utf8/unchecked.h
src/utils/vec3.cpp
src/utils/vec3.hpp
)
target_link_libraries(supertuxkart
Irrlicht
GL
bulletdynamics
bulletcollision
bulletmath
enet
Xxf86vm
openal
curl
vorbisfile)

295
src/bullet/CMakeLists.txt Normal file
View File

@ -0,0 +1,295 @@
# CMakeLists.txt for Bullet in STK
# libbulletmath
add_library(bulletmath
src/LinearMath/btAabbUtil2.h src/LinearMath/btMotionState.h
src/LinearMath/btAlignedAllocator.cpp src/LinearMath/btPoolAllocator.h
src/LinearMath/btAlignedAllocator.h src/LinearMath/btQuadWord.h
src/LinearMath/btAlignedObjectArray.h src/LinearMath/btQuaternion.h
src/LinearMath/btConvexHull.cpp src/LinearMath/btQuickprof.cpp
src/LinearMath/btConvexHull.h src/LinearMath/btQuickprof.h
src/LinearMath/btDefaultMotionState.h src/LinearMath/btRandom.h
src/LinearMath/btGeometryUtil.cpp src/LinearMath/btScalar.h
src/LinearMath/btGeometryUtil.h src/LinearMath/btSerializer.cpp
src/LinearMath/btHashMap.h src/LinearMath/btSerializer.h
src/LinearMath/btIDebugDraw.h src/LinearMath/btStackAlloc.h
src/LinearMath/btList.h src/LinearMath/btTransform.h
src/LinearMath/btMatrix3x3.h src/LinearMath/btTransformUtil.h
src/LinearMath/btMinMax.h src/LinearMath/btVector3.h
)
# TODO: original comment:
# Certain g++ versions causes stk to crash if btVoronoiSimplexSolver.cpp is
# compiled with optimisations. Since it's rather difficult to specify certain
# flags for one file only with auto-tools (you can only specify flags per
# library, so you have to put this one file into a separate library) we compile
# the whole libbulletcollision with the modified flags - i.e. by adding
# -fno-elide-constructors to the flags. The overall performance impact is
# quite low anyway.
# libbulletcollision
add_library(bulletcollision
src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp
src/BulletCollision/BroadphaseCollision/btAxisSweep3.h
src/BulletCollision/BroadphaseCollision/btBroadphaseInterface.h
src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp
src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.h
src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp
src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.h
src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp
src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.h
src/BulletCollision/BroadphaseCollision/btDbvt.cpp
src/BulletCollision/BroadphaseCollision/btDbvt.h
src/BulletCollision/BroadphaseCollision/btDispatcher.cpp
src/BulletCollision/BroadphaseCollision/btDispatcher.h
src/BulletCollision/BroadphaseCollision/btMultiSapBroadphase.cpp
src/BulletCollision/BroadphaseCollision/btMultiSapBroadphase.h
src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp
src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h
src/BulletCollision/BroadphaseCollision/btOverlappingPairCallback.h
src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp
src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h
src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp
src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.h
src/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp
src/BulletCollision/CollisionDispatch/btBoxBoxDetector.h
src/BulletCollision/CollisionDispatch/btCollisionConfiguration.h
src/BulletCollision/CollisionDispatch/btCollisionCreateFunc.h
src/BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp
src/BulletCollision/CollisionDispatch/btCollisionDispatcher.h
src/BulletCollision/CollisionDispatch/btCollisionObject.cpp
src/BulletCollision/CollisionDispatch/btCollisionObject.h
src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp
src/BulletCollision/CollisionDispatch/btCollisionWorld.h
src/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.h
src/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.h
src/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.cpp
src/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.h
src/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btGhostObject.cpp
src/BulletCollision/CollisionDispatch/btGhostObject.h
src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp
src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.h
src/BulletCollision/CollisionDispatch/btManifoldResult.cpp
src/BulletCollision/CollisionDispatch/btManifoldResult.h
src/BulletCollision/CollisionDispatch/btSimulationIslandManager.cpp
src/BulletCollision/CollisionDispatch/btSimulationIslandManager.h
src/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp
src/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.h
src/BulletCollision/CollisionDispatch/btUnionFind.cpp
src/BulletCollision/CollisionDispatch/btUnionFind.h
src/BulletCollision/CollisionDispatch/SphereTriangleDetector.cpp
src/BulletCollision/CollisionDispatch/SphereTriangleDetector.h
src/BulletCollision/CollisionShapes/btBox2dShape.cpp
src/BulletCollision/CollisionShapes/btBox2dShape.h
src/BulletCollision/CollisionShapes/btBoxShape.cpp
src/BulletCollision/CollisionShapes/btBoxShape.h
src/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.cpp
src/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h
src/BulletCollision/CollisionShapes/btCapsuleShape.cpp
src/BulletCollision/CollisionShapes/btCapsuleShape.h
src/BulletCollision/CollisionShapes/btCollisionMargin.h
src/BulletCollision/CollisionShapes/btCollisionShape.cpp
src/BulletCollision/CollisionShapes/btCollisionShape.h
src/BulletCollision/CollisionShapes/btCompoundShape.cpp
src/BulletCollision/CollisionShapes/btCompoundShape.h
src/BulletCollision/CollisionShapes/btConcaveShape.cpp
src/BulletCollision/CollisionShapes/btConcaveShape.h
src/BulletCollision/CollisionShapes/btConeShape.cpp
src/BulletCollision/CollisionShapes/btConeShape.h
src/BulletCollision/CollisionShapes/btConvex2dShape.cpp
src/BulletCollision/CollisionShapes/btConvex2dShape.h
src/BulletCollision/CollisionShapes/btConvexHullShape.cpp
src/BulletCollision/CollisionShapes/btConvexHullShape.h
src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp
src/BulletCollision/CollisionShapes/btConvexInternalShape.h
src/BulletCollision/CollisionShapes/btConvexPointCloudShape.cpp
src/BulletCollision/CollisionShapes/btConvexPointCloudShape.h
src/BulletCollision/CollisionShapes/btConvexShape.cpp
src/BulletCollision/CollisionShapes/btConvexShape.h
src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp
src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.h
src/BulletCollision/CollisionShapes/btCylinderShape.cpp
src/BulletCollision/CollisionShapes/btCylinderShape.h
src/BulletCollision/CollisionShapes/btEmptyShape.cpp
src/BulletCollision/CollisionShapes/btEmptyShape.h
src/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.cpp
src/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h
src/BulletCollision/CollisionShapes/btMaterial.h
src/BulletCollision/CollisionShapes/btMinkowskiSumShape.cpp
src/BulletCollision/CollisionShapes/btMinkowskiSumShape.h
src/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.cpp
src/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.h
src/BulletCollision/CollisionShapes/btMultiSphereShape.cpp
src/BulletCollision/CollisionShapes/btMultiSphereShape.h
src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp
src/BulletCollision/CollisionShapes/btOptimizedBvh.h
src/BulletCollision/CollisionShapes/btPolyhedralConvexShape.cpp
src/BulletCollision/CollisionShapes/btPolyhedralConvexShape.h
src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp
src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.h
src/BulletCollision/CollisionShapes/btShapeHull.cpp
src/BulletCollision/CollisionShapes/btShapeHull.h
src/BulletCollision/CollisionShapes/btSphereShape.cpp
src/BulletCollision/CollisionShapes/btSphereShape.h
src/BulletCollision/CollisionShapes/btStaticPlaneShape.cpp
src/BulletCollision/CollisionShapes/btStaticPlaneShape.h
src/BulletCollision/CollisionShapes/btStridingMeshInterface.cpp
src/BulletCollision/CollisionShapes/btStridingMeshInterface.h
src/BulletCollision/CollisionShapes/btTetrahedronShape.cpp
src/BulletCollision/CollisionShapes/btTetrahedronShape.h
src/BulletCollision/CollisionShapes/btTriangleBuffer.cpp
src/BulletCollision/CollisionShapes/btTriangleBuffer.h
src/BulletCollision/CollisionShapes/btTriangleCallback.cpp
src/BulletCollision/CollisionShapes/btTriangleCallback.h
src/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.cpp
src/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.h
src/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.cpp
src/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.h
src/BulletCollision/CollisionShapes/btTriangleInfoMap.h
src/BulletCollision/CollisionShapes/btTriangleMesh.cpp
src/BulletCollision/CollisionShapes/btTriangleMesh.h
src/BulletCollision/CollisionShapes/btTriangleMeshShape.cpp
src/BulletCollision/CollisionShapes/btTriangleMeshShape.h
src/BulletCollision/CollisionShapes/btTriangleShape.h
src/BulletCollision/CollisionShapes/btUniformScalingShape.cpp
src/BulletCollision/CollisionShapes/btUniformScalingShape.h
src/BulletCollision/Gimpact/btBoxCollision.h
src/BulletCollision/Gimpact/btClipPolygon.h
src/BulletCollision/Gimpact/btContactProcessing.cpp
src/BulletCollision/Gimpact/btContactProcessing.h
src/BulletCollision/Gimpact/btGenericPoolAllocator.cpp
src/BulletCollision/Gimpact/btGenericPoolAllocator.h
src/BulletCollision/Gimpact/btGeometryOperations.h
src/BulletCollision/Gimpact/btGImpactBvh.cpp
src/BulletCollision/Gimpact/btGImpactBvh.h
src/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.cpp
src/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h
src/BulletCollision/Gimpact/btGImpactMassUtil.h
src/BulletCollision/Gimpact/btGImpactQuantizedBvh.cpp
src/BulletCollision/Gimpact/btGImpactQuantizedBvh.h
src/BulletCollision/Gimpact/btGImpactShape.cpp
src/BulletCollision/Gimpact/btGImpactShape.h
src/BulletCollision/Gimpact/btQuantization.h
src/BulletCollision/Gimpact/btTriangleShapeEx.cpp
src/BulletCollision/Gimpact/btTriangleShapeEx.h
src/BulletCollision/Gimpact/gim_array.h
src/BulletCollision/Gimpact/gim_basic_geometry_operations.h
src/BulletCollision/Gimpact/gim_bitset.h
src/BulletCollision/Gimpact/gim_box_collision.h
src/BulletCollision/Gimpact/gim_box_set.cpp
src/BulletCollision/Gimpact/gim_box_set.h
src/BulletCollision/Gimpact/gim_clip_polygon.h
src/BulletCollision/Gimpact/gim_contact.cpp
src/BulletCollision/Gimpact/gim_contact.h
src/BulletCollision/Gimpact/gim_geometry.h
src/BulletCollision/Gimpact/gim_geom_types.h
src/BulletCollision/Gimpact/gim_hash_table.h
src/BulletCollision/Gimpact/gim_linear_math.h
src/BulletCollision/Gimpact/gim_math.h
src/BulletCollision/Gimpact/gim_memory.cpp
src/BulletCollision/Gimpact/gim_memory.h
src/BulletCollision/Gimpact/gim_radixsort.h
src/BulletCollision/Gimpact/gim_tri_collision.cpp
src/BulletCollision/Gimpact/gim_tri_collision.h
src/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp
src/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.h
src/BulletCollision/NarrowPhaseCollision/btConvexCast.cpp
src/BulletCollision/NarrowPhaseCollision/btConvexCast.h
src/BulletCollision/NarrowPhaseCollision/btConvexPenetrationDepthSolver.h
src/BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h
src/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.cpp
src/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.h
src/BulletCollision/NarrowPhaseCollision/btGjkEpa2.cpp
src/BulletCollision/NarrowPhaseCollision/btGjkEpa2.h
src/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.cpp
src/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h
src/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp
src/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h
src/BulletCollision/NarrowPhaseCollision/btManifoldPoint.h
src/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.cpp
src/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.h
src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp
src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.h
src/BulletCollision/NarrowPhaseCollision/btPointCollector.h
src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp
src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.h
src/BulletCollision/NarrowPhaseCollision/btSimplexSolverInterface.h
src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp
src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.h
src/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp
src/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h
)
# libbulletdynamics
add_library(bulletdynamics
src/BulletDynamics/Character/btCharacterControllerInterface.h
src/BulletDynamics/Character/btKinematicCharacterController.cpp
src/BulletDynamics/Character/btKinematicCharacterController.h
src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp
src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.h
src/BulletDynamics/ConstraintSolver/btConstraintSolver.h
src/BulletDynamics/ConstraintSolver/btContactConstraint.cpp
src/BulletDynamics/ConstraintSolver/btContactConstraint.h
src/BulletDynamics/ConstraintSolver/btContactSolverInfo.h
src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp
src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.h
src/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.cpp
src/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.h
src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp
src/BulletDynamics/ConstraintSolver/btHinge2Constraint.h
src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp
src/BulletDynamics/ConstraintSolver/btHingeConstraint.h
src/BulletDynamics/ConstraintSolver/btJacobianEntry.h
src/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.cpp
src/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.h
src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp
src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h
src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp
src/BulletDynamics/ConstraintSolver/btSliderConstraint.h
src/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.cpp
src/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.h
src/BulletDynamics/ConstraintSolver/btSolverBody.h
src/BulletDynamics/ConstraintSolver/btSolverConstraint.h
src/BulletDynamics/ConstraintSolver/btSorLcp.cpp
src/BulletDynamics/ConstraintSolver/btSorLcp.h
src/BulletDynamics/ConstraintSolver/btTypedConstraint.cpp
src/BulletDynamics/ConstraintSolver/btTypedConstraint.h
src/BulletDynamics/ConstraintSolver/btUniversalConstraint.cpp
src/BulletDynamics/ConstraintSolver/btUniversalConstraint.h
src/BulletDynamics/Dynamics/btActionInterface.h
src/BulletDynamics/Dynamics/btContinuousDynamicsWorld.cpp
src/BulletDynamics/Dynamics/btContinuousDynamicsWorld.h
src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp
src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h
src/BulletDynamics/Dynamics/btDynamicsWorld.h
src/BulletDynamics/Dynamics/btRigidBody.cpp
src/BulletDynamics/Dynamics/btRigidBody.h
src/BulletDynamics/Dynamics/btSimpleDynamicsWorld.cpp
src/BulletDynamics/Dynamics/btSimpleDynamicsWorld.h
src/BulletDynamics/Dynamics/Bullet-C-API.cpp
src/BulletDynamics/Vehicle/btRaycastVehicle.cpp
src/BulletDynamics/Vehicle/btRaycastVehicle.h
src/BulletDynamics/Vehicle/btVehicleRaycaster.h
src/BulletDynamics/Vehicle/btWheelInfo.cpp
src/BulletDynamics/Vehicle/btWheelInfo.h
)

10
src/enet/CMakeLists.txt Normal file
View File

@ -0,0 +1,10 @@
# CMakeLists.txt - enet
include_directories("include")
add_definitions(-DHAS_SOCKLEN_T)
add_library(enet
callbacks.c host.c list.c peer.c unix.c
compress.c install-sh packet.c protocol.c win32.c
)