fysxasteroids/CMakeLists.txt

44 lines
864 B
CMake

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 ( hasteroids ${ASTEROIDS_SOURCES} )
TARGET_LINK_LIBRARIES ( hasteroids
Engine
)