2010-04-05 23:38:59 +02:00
|
|
|
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
|
|
|
|
|
|
|
|
LIST( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake )
|
|
|
|
|
|
|
|
FIND_PACKAGE (SDL REQUIRED)
|
|
|
|
FIND_PACKAGE (OpenGL REQUIRED)
|
|
|
|
FIND_PACKAGE (PNG REQUIRED)
|
|
|
|
FIND_PACKAGE (FreeType2 REQUIRED)
|
2010-04-18 11:41:29 +02:00
|
|
|
FIND_PACKAGE (Boost COMPONENTS filesystem REQUIRED)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES (${Boost_INCLUDE_DIRS} )
|
2010-04-05 23:38:59 +02:00
|
|
|
|
|
|
|
ADD_SUBDIRECTORY ( libraries )
|
|
|
|
|
|
|
|
SET ( ENGINE_SRCS
|
|
|
|
CameraBase.cc
|
|
|
|
ControllerBase.cc
|
|
|
|
EntityBase.cc
|
|
|
|
EntityFactoryBase.cc
|
|
|
|
GameEntityBase.cc
|
|
|
|
ModelBase.cc
|
|
|
|
PhysicsBase.cc
|
|
|
|
PhysicsEntityBase.cc
|
|
|
|
ViewBase.cc
|
|
|
|
EventsBase.cc
|
2010-06-06 00:58:11 +02:00
|
|
|
OverlayBase.cc
|
2010-04-05 23:38:59 +02:00
|
|
|
|
|
|
|
Commands.cc
|
|
|
|
DrawingsGL.cc
|
|
|
|
EngineCommands.cc
|
|
|
|
Variables.cc
|
|
|
|
VariablesCommands.cc
|
|
|
|
SimpleConsoleOverlay.cc
|
|
|
|
Sprite.cc
|
2010-08-29 23:59:24 +02:00
|
|
|
IMGUIControls.cc
|
2010-04-05 23:38:59 +02:00
|
|
|
|
|
|
|
Engine.cc
|
|
|
|
Logging.cc
|
2010-04-14 20:13:19 +02:00
|
|
|
EnumStrings.cc
|
2010-04-05 23:38:59 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES (
|
|
|
|
${PROJECT_SOURCE_DIR}
|
|
|
|
libraries/mathlib/
|
|
|
|
libraries/coll2d/include
|
|
|
|
libraries/oglft/
|
|
|
|
${FREETYPE2_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
IF ( WIN32 )
|
|
|
|
ADD_LIBRARY ( Engine STATIC ${ENGINE_SRCS} )
|
|
|
|
ELSE ( WIN32 )
|
|
|
|
ADD_LIBRARY ( Engine SHARED ${ENGINE_SRCS} )
|
|
|
|
ENDIF ( WIN32 )
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES ( Engine
|
|
|
|
${SDL_LIBRARY}
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
${PNG_LIBRARIES}
|
2010-04-18 11:41:29 +02:00
|
|
|
${Boost_LIBRARIES}
|
2010-04-05 23:38:59 +02:00
|
|
|
mathlib
|
|
|
|
oglft
|
|
|
|
coll2d
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_SUBDIRECTORY ( tests )
|
|
|
|
|