fysxasteroids/CMakeLists.txt

47 lines
920 B
CMake
Raw Normal View History

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/
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
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
asteroids/UserInterface.cc
2010-04-05 23:38:59 +02:00
)
ADD_EXECUTABLE ( run_asteroids ${ASTEROIDS_SOURCES} )
2010-04-05 23:38:59 +02:00
TARGET_LINK_LIBRARIES ( run_asteroids
2010-04-05 23:38:59 +02:00
Engine
)