2010-04-14 22:01:45 +02:00
|
|
|
PROJECT ( Asteroids )
|
|
|
|
|
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 (Cal3D REQUIRED)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES (
|
|
|
|
engine/
|
2010-06-06 01:22:01 +02:00
|
|
|
asteroids/
|
2010-04-05 23:38:59 +02:00
|
|
|
include/
|
|
|
|
engine/libraries/mathlib/
|
|
|
|
engine/libraries/coll2d/include
|
|
|
|
engine/libraries/oglft/
|
|
|
|
${FREETYPE2_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES ( ${PROJECT_EXECUTABLES} PROPERTIES
|
|
|
|
LINKER_LANGUAGE CXX
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_SUBDIRECTORY ( engine )
|
|
|
|
|
|
|
|
SET ( ASTEROIDS_SOURCES
|
|
|
|
asteroids/AsteroidEntity.cc
|
|
|
|
asteroids/Controller.cc
|
|
|
|
asteroids/ControllerCommands.cc
|
|
|
|
asteroids/EntityFactory.cc
|
|
|
|
asteroids/EnumToString.cc
|
2010-06-06 01:22:01 +02:00
|
|
|
asteroids/Game.cc
|
2010-04-05 23:38:59 +02:00
|
|
|
asteroids/main.cc
|
|
|
|
asteroids/Model.cc
|
|
|
|
asteroids/ModelCommands.cc
|
|
|
|
asteroids/Physics.cc
|
|
|
|
asteroids/RocketEntity.cc
|
|
|
|
asteroids/ShipEntity.cc
|
|
|
|
asteroids/View.cc
|
2010-06-06 01:22:01 +02:00
|
|
|
asteroids/UserInterface.cc
|
2010-04-05 23:38:59 +02:00
|
|
|
)
|
|
|
|
|
2010-04-14 22:01:45 +02:00
|
|
|
ADD_EXECUTABLE ( run_asteroids ${ASTEROIDS_SOURCES} )
|
2010-04-05 23:38:59 +02:00
|
|
|
|
2010-04-14 22:01:45 +02:00
|
|
|
TARGET_LINK_LIBRARIES ( run_asteroids
|
2010-04-05 23:38:59 +02:00
|
|
|
Engine
|
|
|
|
)
|