fysxasteroids/CMakeLists.txt

96 lines
1.8 KiB
CMake
Raw Normal View History

PROJECT ( Asteroids C CXX )
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/
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
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
)
2011-02-13 17:14:06 +01:00
SET ( ASTEROIDSEDITOR_SOURCES
asteroids/AsteroidEntity.cc
asteroids/Controller.cc
asteroids/ControllerCommands.cc
asteroids/EntityFactory.cc
asteroids/EnumToString.cc
asteroids/Game.cc
asteroids/editormain.cc
asteroids/Model.cc
asteroids/ModelCommands.cc
asteroids/Physics.cc
asteroids/RocketEntity.cc
asteroids/ShipEntity.cc
asteroids/View.cc
)
ADD_EXECUTABLE ( fysxasteroids ${ASTEROIDS_SOURCES} )
2011-02-13 17:14:06 +01:00
ADD_EXECUTABLE ( fysxasteroidseditor ${ASTEROIDSEDITOR_SOURCES} )
2010-04-05 23:38:59 +02:00
TARGET_LINK_LIBRARIES ( fysxasteroids
2010-04-05 23:38:59 +02:00
Engine
oglft
2010-04-05 23:38:59 +02:00
)
2010-12-02 19:56:55 +01:00
2011-02-13 17:14:06 +01:00
TARGET_LINK_LIBRARIES ( fysxasteroidseditor
Engine
oglft
)
2010-12-02 19:56:55 +01:00
SET ( DATA_DIR
data/
)
2011-02-13 17:14:06 +01:00
SET ( DATA_FILES
asteroids.rc
config.rc
)
INSTALL (TARGETS fysxasteroids
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
)
2011-02-13 17:14:06 +01:00
INSTALL (TARGETS fysxasteroidseditor
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
)
2010-12-02 19:56:55 +01:00
INSTALL (DIRECTORY ${DATA_DIR}
2010-12-03 01:02:08 +01:00
DESTINATION share/fysxasteroids/data
2010-12-02 19:56:55 +01:00
)
2011-02-13 17:14:06 +01:00
INSTALL (FILES ${DATA_FILES}
DESTINATION share/fysxasteroids
)