46 lines
893 B
CMake
46 lines
893 B
CMake
PROJECT ( Asteroids )
|
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
|
|
|
LIST( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake )
|
|
|
|
# FIND_PACKAGE (Cal3D REQUIRED)
|
|
|
|
INCLUDE_DIRECTORIES (
|
|
src/
|
|
engine/
|
|
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
|
|
asteroids/main.cc
|
|
asteroids/Model.cc
|
|
asteroids/ModelCommands.cc
|
|
asteroids/Physics.cc
|
|
asteroids/RocketEntity.cc
|
|
asteroids/ShipEntity.cc
|
|
asteroids/View.cc
|
|
asteroids/MenuOverlay.cc
|
|
)
|
|
|
|
ADD_EXECUTABLE ( run_asteroids ${ASTEROIDS_SOURCES} )
|
|
|
|
TARGET_LINK_LIBRARIES ( run_asteroids
|
|
Engine
|
|
)
|