2010-12-03 00:15:26 +01:00
|
|
|
PROJECT ( Asteroids C CXX )
|
2010-04-14 22:01:45 +02:00
|
|
|
|
2010-04-05 23:38:59 +02:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
|
|
|
|
|
|
|
LIST( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake )
|
|
|
|
|
2010-12-02 19:56:55 +01:00
|
|
|
# Perform the proper linking
|
|
|
|
SET (CMAKE_SKIP_BUILD_RPATH FALSE)
|
|
|
|
SET (CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
|
|
|
SET (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
|
|
|
SET (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
2010-04-05 23:38:59 +02:00
|
|
|
|
|
|
|
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
|
2010-12-02 19:56:55 +01:00
|
|
|
engine/libraries/oglft/liboglft
|
2010-04-05 23:38:59 +02:00
|
|
|
${FREETYPE2_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
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-12-03 00:16:59 +01:00
|
|
|
ADD_EXECUTABLE ( fysxasteroids ${ASTEROIDS_SOURCES} )
|
2010-04-05 23:38:59 +02:00
|
|
|
|
2010-12-03 00:16:59 +01:00
|
|
|
TARGET_LINK_LIBRARIES ( fysxasteroids
|
2010-04-05 23:38:59 +02:00
|
|
|
Engine
|
2010-11-28 23:08:52 +01:00
|
|
|
oglft
|
2010-04-05 23:38:59 +02:00
|
|
|
)
|
2010-12-02 19:56:55 +01:00
|
|
|
|
|
|
|
SET ( DATA_DIR
|
|
|
|
data/
|
|
|
|
)
|
|
|
|
|
|
|
|
INSTALL (DIRECTORY ${DATA_DIR}
|
|
|
|
DESTINATION share/fysxasteroids
|
|
|
|
)
|