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)
|
2010-10-18 00:40:50 +02:00
|
|
|
FIND_PACKAGE (SDL_mixer REQUIRED)
|
2011-03-16 17:03:41 +01:00
|
|
|
FIND_PACKAGE (SDL_net REQUIRED)
|
2010-04-05 23:38:59 +02:00
|
|
|
FIND_PACKAGE (OpenGL REQUIRED)
|
2011-06-13 17:05:07 +02:00
|
|
|
FIND_PACKAGE (GLEW REQUIRED)
|
2010-04-05 23:38:59 +02:00
|
|
|
FIND_PACKAGE (PNG REQUIRED)
|
|
|
|
FIND_PACKAGE (FreeType2 REQUIRED)
|
2010-04-18 11:41:29 +02:00
|
|
|
FIND_PACKAGE (Boost COMPONENTS filesystem REQUIRED)
|
|
|
|
|
2010-04-05 23:38:59 +02:00
|
|
|
ADD_SUBDIRECTORY ( libraries )
|
|
|
|
|
|
|
|
SET ( ENGINE_SRCS
|
|
|
|
CameraBase.cc
|
|
|
|
ControllerBase.cc
|
|
|
|
EntityBase.cc
|
|
|
|
EntityFactoryBase.cc
|
2010-10-18 00:40:50 +02:00
|
|
|
EventBase.cc
|
2010-04-05 23:38:59 +02:00
|
|
|
GameEntityBase.cc
|
|
|
|
ModelBase.cc
|
2010-10-18 00:40:50 +02:00
|
|
|
OverlayBase.cc
|
2010-04-05 23:38:59 +02:00
|
|
|
PhysicsBase.cc
|
|
|
|
PhysicsEntityBase.cc
|
2010-10-18 00:40:50 +02:00
|
|
|
SoundBase.cc
|
2010-04-05 23:38:59 +02:00
|
|
|
ViewBase.cc
|
|
|
|
|
|
|
|
Commands.cc
|
|
|
|
DrawingsGL.cc
|
|
|
|
EngineCommands.cc
|
|
|
|
Variables.cc
|
|
|
|
VariablesCommands.cc
|
|
|
|
SimpleConsoleOverlay.cc
|
|
|
|
Sprite.cc
|
2011-06-13 19:05:04 +02:00
|
|
|
OBJModel.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
|
2011-02-12 15:43:06 +01:00
|
|
|
Utils.cc
|
2010-04-05 23:38:59 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES (
|
2010-10-18 00:40:50 +02:00
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${SDLMIXER_INCLUDE_DIRS}
|
2011-03-16 17:03:41 +01:00
|
|
|
${SDLNET_INCLUDE_DIRS}
|
2010-04-05 23:38:59 +02:00
|
|
|
${PROJECT_SOURCE_DIR}
|
|
|
|
libraries/mathlib/
|
|
|
|
libraries/coll2d/include
|
2010-11-15 00:06:44 +01:00
|
|
|
libraries/oglft/liboglft
|
2011-03-16 17:03:41 +01:00
|
|
|
libraries/sha2/
|
2010-04-05 23:38:59 +02:00
|
|
|
${FREETYPE2_INCLUDE_DIR}
|
2011-06-13 17:05:07 +02:00
|
|
|
${GLEW_INCLUDE_DIR}
|
2010-04-05 23:38:59 +02:00
|
|
|
)
|
|
|
|
|
2010-12-02 19:56:55 +01:00
|
|
|
ADD_LIBRARY ( Engine STATIC ${ENGINE_SRCS} )
|
2010-04-05 23:38:59 +02:00
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES ( Engine
|
|
|
|
${SDL_LIBRARY}
|
2010-10-18 00:40:50 +02:00
|
|
|
${SDLMIXER_LIBRARY}
|
2011-03-16 17:03:41 +01:00
|
|
|
${SDLNET_LIBRARY}
|
2010-04-05 23:38:59 +02:00
|
|
|
${OPENGL_LIBRARIES}
|
2011-06-13 17:05:07 +02:00
|
|
|
${GLEW_LIBRARIES}
|
2010-04-05 23:38:59 +02:00
|
|
|
${PNG_LIBRARIES}
|
2010-04-18 11:41:29 +02:00
|
|
|
${Boost_LIBRARIES}
|
2010-04-05 23:38:59 +02:00
|
|
|
mathlib
|
|
|
|
oglft
|
|
|
|
coll2d
|
2011-03-16 17:03:41 +01:00
|
|
|
sha2
|
2010-04-05 23:38:59 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
ADD_SUBDIRECTORY ( tests )
|
|
|
|
|