2011-07-24 10:29:16 -04:00
# CMakeLists.txt - root CMakeLists for the SuperTuxKart project
# TODO: make Ogg Vorbis optional (doesn't seem to work with autotools either!)
cmake_minimum_required ( VERSION 2.8.1 )
project ( SuperTuxKart )
#set(CMAKE_VERBOSE_MAKEFILE TRUE)
set ( STK_SOURCE_DIR "src" )
set ( CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin" )
2011-09-05 20:15:06 -04:00
set ( PROJECT_VERSION "0.7.3" )
2011-07-24 14:40:20 -04:00
# Tweakable values
2011-08-01 15:18:49 -04:00
if ( CMAKE_BUILD_TYPE MATCHES "Debug" )
set ( DEBUG ON )
2011-10-22 14:20:51 -04:00
else ( )
2011-08-01 15:18:49 -04:00
set ( DEBUG OFF )
2011-10-22 14:20:51 -04:00
endif ( )
2011-08-01 15:18:49 -04:00
2011-07-24 14:40:20 -04:00
option ( USE_FRIBIDI "Support for right-to-left languages" ON )
2011-08-01 15:18:49 -04:00
option ( FONT_TOOL "Compile font tool" OFF )
2011-07-24 14:40:20 -04:00
set ( IRRLICHT_DIR "/path/to/irrlicht" CACHE STRING "Path to Irrlicht" )
2011-07-24 10:29:16 -04:00
# Build the Bullet physics library
add_subdirectory ( "${STK_SOURCE_DIR}/bullet" )
# Build the ENet UDP network library
add_subdirectory ( "${STK_SOURCE_DIR}/enet" )
2011-07-24 14:40:20 -04:00
# Set include paths
2011-07-24 10:29:16 -04:00
include_directories ( "${STK_SOURCE_DIR}" )
include_directories ( "${STK_SOURCE_DIR}/enet/include" )
include_directories ( "${STK_SOURCE_DIR}/bullet/src" )
2011-07-24 14:40:20 -04:00
2011-08-29 14:17:45 -04:00
if ( APPLE )
# We could use smarter detection of the frameworks but supporting a single official setup makes things easy...
include_directories ( "/Library/Frameworks/IrrFramework.framework/Versions/A/Headers/" )
include_directories ( "/Library/Frameworks/fribidi.framework/Headers" )
include_directories ( "/Library/Frameworks/Ogg.framework/Headers" )
include_directories ( "/Library/Frameworks/Vorbis.framework/Headers" )
include_directories ( "/usr/local/include" )
include_directories ( "/usr/include" )
find_library ( Ogg /Library/Frameworks/Ogg.framework )
find_library ( Vorbis /Library/Frameworks/Vorbis.framework )
endif ( )
2011-07-24 14:40:20 -04:00
# Set lib paths
if ( APPLE )
2011-08-29 14:17:45 -04:00
# nothing to add
2011-07-24 14:40:20 -04:00
elseif ( UNIX )
link_directories ( "${IRRLICHT_DIR}/lib/Linux" )
elseif ( MSVC )
link_directories ( "${IRRLICHT_DIR}/lib/Win32-visualstudio" )
else ( )
link_directories ( "${IRRLICHT_DIR}/lib/Win32-gcc" )
endif ( )
2011-07-24 10:29:16 -04:00
link_directories ( "${STK_SOURCE_DIR}/bullet" )
2011-08-01 15:18:49 -04:00
# OpenGL
2011-08-29 14:17:45 -04:00
if ( APPLE )
find_library ( OpenGL /System/Library/Frameworks/OpenGL.framework /System/Library/Frameworks/AGL.framework )
2011-08-01 15:18:49 -04:00
else ( )
2011-08-29 14:17:45 -04:00
find_package ( OpenGL )
if ( OPENGL_FOUND )
message ( "-- OpenGL found (include dirs: ${OPENGL_INCLUDE_DIR})" )
include_directories ( ${ OPENGL_INCLUDE_DIR } )
else ( )
message ( FATAL_ERROR "OpenGL not found." )
endif ( )
if ( UNIX )
# X11, stk requires xf86vm
find_package ( X11 )
if ( X11_FOUND )
message ( "-- X11 libs found" )
else ( )
message ( FATAL_ERROR "X11 not found." )
endif ( )
endif ( )
2011-07-24 14:40:20 -04:00
endif ( )
2011-08-01 15:18:49 -04:00
# OpenAL
2011-08-29 14:17:45 -04:00
if ( APPLE )
find_library ( OpenAL /Library/Frameworks/OpenAL.framework )
2011-08-01 15:18:49 -04:00
else ( )
2011-08-29 14:17:45 -04:00
find_package ( OpenAL )
if ( OPENAL_FOUND )
message ( "-- OpenAL found (include dirs: ${OPENAL_INCLUDE_DIR})" )
include_directories ( ${ OPENAL_INCLUDE_DIR } )
else ( )
message ( FATAL_ERROR "OpenAL not found." )
endif ( )
2011-08-01 15:18:49 -04:00
endif ( )
# Check if we finally got irrlicht
2011-08-29 14:17:45 -04:00
if ( APPLE )
find_library ( Irrlicht /Library/Frameworks/IrrFramework.framework )
2011-08-01 15:18:49 -04:00
else ( )
2011-08-29 14:17:45 -04:00
find_path ( HAVE_IRRLICHT irrlicht.h PATHS ${ IRRLICHT_DIR } ${ IRRLICHT_DIR } /include /usr/include/irrlicht/ /usr/local/include/irrlicht/ )
if ( HAVE_IRRLICHT )
message ( "-- Irrlicht found (in ${HAVE_IRRLICHT}/irrlicht.h)" )
2011-10-24 19:56:55 -04:00
#include_directories(${IRRLICHT_DIR} ${IRRLICHT_DIR}/include /usr/include/irrlicht/ /usr/local/include/irrlicht/)
include_directories ( ${ HAVE_IRRLICHT } )
2011-08-29 14:17:45 -04:00
else ( )
message ( FATAL_ERROR "\n -- Irrlicht not found (can't locate irrlicht.h)\n Use -DIRRLICHT_DIR=/path/to/irrlicht" )
endif ( )
2011-08-01 15:18:49 -04:00
endif ( )
include_directories ( ${ HAVE_IRRLICHT } )
# CURL
find_package ( CURL )
if ( CURL_FOUND )
include_directories ( ${ CURL_INCLUDE_DIRS } )
else ( )
message ( FATAL_ERROR "-- libcURL not found, please install it." )
endif ( )
2011-10-20 22:07:12 -04:00
# Fribidi
if ( USE_FRIBIDI )
FIND_PATH ( FRIBIDI_INCLUDE_DIR fribidi/fribidi.h
/ u s r / l o c a l / i n c l u d e
/ u s r / i n c l u d e
)
SET ( FRIBIDI_NAMES ${ FRIBIDI_NAMES } fribidi libfribidi )
FIND_LIBRARY ( FRIBIDI_LIBRARY
N A M E S $ { F R I B I D I _ N A M E S }
P A T H S / u s r / l i b / u s r / l o c a l / l i b
)
IF ( FRIBIDI_LIBRARY AND FRIBIDI_INCLUDE_DIR )
message ( "-- Fribidi found" )
else ( )
message ( FATAL_ERROR "Fribidi not found. Either install fribidi or disable bidi support with -DUSE_FRIBIDI=0 (if you don't use a right-to-left language then you don't need this)." )
endif ( )
endif ( )
2011-08-01 15:18:49 -04:00
# Set some compiler options
if ( UNIX )
add_definitions ( -Wall )
endif ( )
2011-07-24 14:40:20 -04:00
add_definitions ( -DHAVE_OGGVORBIS ) # TODO: remove this switch
if ( DEBUG )
add_definitions ( -DDEBUG )
else ( )
add_definitions ( -DNDEBUG )
2011-10-20 21:14:46 -04:00
add_definitions ( -O2 )
2011-07-24 10:29:16 -04:00
endif ( )
2011-08-01 15:18:49 -04:00
find_package ( Freetype )
2011-09-05 20:15:06 -04:00
if ( FONT_TOOL )
if ( FREETYPE_FOUND )
message ( "-- Freetype found" )
find_package ( X11 )
include_directories ( ${ FREETYPE_INCLUDE_DIRS } )
add_executable ( font_tool
2011-11-22 13:36:58 -05:00
t o o l s / f o n t _ t o o l / C F o n t T o o l . c p p
t o o l s / f o n t _ t o o l / C F o n t T o o l . h
t o o l s / f o n t _ t o o l / C V e c t o r F o n t T o o l . h
t o o l s / f o n t _ t o o l / m a i n . c p p
2011-09-05 20:15:06 -04:00
)
target_link_libraries ( font_tool ${ FREETYPE_LIBRARIES } )
target_link_libraries ( font_tool ${ X11_Xft_LIB } )
target_link_libraries ( font_tool ${ OPENGL_LIBRARIES } )
target_link_libraries ( font_tool Irrlicht )
else ( )
message ( "-- Freetype was not found, the font tool won't be built (only useful for developers)" )
endif ( )
2011-08-01 15:18:49 -04:00
else ( )
2011-09-05 20:15:06 -04:00
message ( "-- Font tool deactivated, the font tool won't be built (only useful for developers)" )
2011-08-01 15:18:49 -04:00
endif ( )
2011-07-24 10:29:16 -04:00
2011-08-29 14:17:45 -04:00
set ( SRCS ${ SRCS } src/main.cpp
2011-07-24 10:29:16 -04:00
s r c / m a i n _ l o o p . c p p
s r c / m a i n _ l o o p . h p p
s r c / a d d o n s / a d d o n . c p p
s r c / a d d o n s / a d d o n . h p p
s r c / a d d o n s / a d d o n s _ m a n a g e r . c p p
s r c / a d d o n s / a d d o n s _ m a n a g e r . h p p
2011-11-26 19:48:02 -05:00
s r c / a d d o n s / d u m m y _ n e t w o r k _ h t t p . h p p
s r c / a d d o n s / i n e t w o r k _ h t t p . h p p
2011-07-24 10:29:16 -04:00
s r c / a d d o n s / n e t w o r k _ h t t p . c p p
s r c / a d d o n s / n e t w o r k _ h t t p . h p p
s r c / a d d o n s / n e w s _ m a n a g e r . c p p
s r c / a d d o n s / n e w s _ m a n a g e r . h p p
s r c / a d d o n s / r e q u e s t . c p p
s r c / a d d o n s / r e q u e s t . h p p
s r c / a d d o n s / z i p . c p p
s r c / a d d o n s / z i p . h p p
s r c / a n i m a t i o n s / a n i m a t i o n _ b a s e . c p p
s r c / a n i m a t i o n s / a n i m a t i o n _ b a s e . h p p
s r c / a n i m a t i o n s / b i l l b o a r d _ a n i m a t i o n . c p p
s r c / a n i m a t i o n s / b i l l b o a r d _ a n i m a t i o n . h p p
s r c / a n i m a t i o n s / i p o . c p p
s r c / a n i m a t i o n s / i p o . h p p
s r c / a n i m a t i o n s / t h r e e _ d _ a n i m a t i o n . c p p
s r c / a n i m a t i o n s / t h r e e _ d _ a n i m a t i o n . h p p
2011-11-26 20:14:16 -05:00
s r c / a u d i o / d u m m y _ s f x . h p p
2011-07-24 10:29:16 -04:00
s r c / a u d i o / m u s i c . h p p
2011-11-26 20:14:16 -05:00
s r c / a u d i o / m u s i c _ d u m m y . h p p
2011-07-24 10:29:16 -04:00
s r c / a u d i o / m u s i c _ i n f o r m a t i o n . c p p
s r c / a u d i o / m u s i c _ i n f o r m a t i o n . h p p
s r c / a u d i o / m u s i c _ m a n a g e r . c p p
s r c / a u d i o / m u s i c _ m a n a g e r . h p p
s r c / a u d i o / m u s i c _ o g g . c p p
s r c / a u d i o / m u s i c _ o g g . h p p
s r c / a u d i o / s f x _ b a s e . h p p
s r c / a u d i o / s f x _ b u f f e r . c p p
s r c / a u d i o / s f x _ b u f f e r . h p p
s r c / a u d i o / s f x _ m a n a g e r . c p p
s r c / a u d i o / s f x _ m a n a g e r . h p p
s r c / a u d i o / s f x _ o p e n a l . c p p
s r c / a u d i o / s f x _ o p e n a l . h p p
s r c / c h a l l e n g e s / c h a l l e n g e . c p p
s r c / c h a l l e n g e s / c h a l l e n g e _ d a t a . c p p
s r c / c h a l l e n g e s / c h a l l e n g e _ d a t a . h p p
s r c / c h a l l e n g e s / c h a l l e n g e . h p p
s r c / c h a l l e n g e s / u n l o c k _ m a n a g e r . c p p
s r c / c h a l l e n g e s / u n l o c k _ m a n a g e r . h p p
s r c / c o n f i g / d e v i c e _ c o n f i g . c p p
s r c / c o n f i g / d e v i c e _ c o n f i g . h p p
s r c / c o n f i g / p l a y e r . h p p
s r c / c o n f i g / s t k _ c o n f i g . c p p
s r c / c o n f i g / s t k _ c o n f i g . h p p
s r c / c o n f i g / u s e r _ c o n f i g . c p p
s r c / c o n f i g / u s e r _ c o n f i g . h p p
s r c / e n e t / i n c l u d e / e n e t / c a l l b a c k s . h
s r c / e n e t / i n c l u d e / e n e t / e n e t . h
s r c / e n e t / i n c l u d e / e n e t / l i s t . h
s r c / e n e t / i n c l u d e / e n e t / p r o t o c o l . h
s r c / e n e t / i n c l u d e / e n e t / t i m e . h
s r c / e n e t / i n c l u d e / e n e t / t y p e s . h
s r c / e n e t / i n c l u d e / e n e t / u n i x . h
s r c / e n e t / i n c l u d e / e n e t / u t i l i t y . h
s r c / e n e t / i n c l u d e / e n e t / w i n 3 2 . h
s r c / g r a p h i c s / c a m e r a . c p p
s r c / g r a p h i c s / c a m e r a . h p p
s r c / g r a p h i c s / C B a t c h i n g M e s h . c p p
s r c / g r a p h i c s / C B a t c h i n g M e s h . h p p
s r c / g r a p h i c s / e x p l o s i o n . c p p
s r c / g r a p h i c s / e x p l o s i o n . h p p
s r c / g r a p h i c s / h a r d w a r e _ s k i n n i n g . c p p
s r c / g r a p h i c s / h a r d w a r e _ s k i n n i n g . h p p
2011-08-23 17:57:46 -04:00
s r c / g r a p h i c s / h i t _ e f f e c t . h p p
2011-08-25 00:25:55 -04:00
s r c / g r a p h i c s / h i t _ s f x . c p p
s r c / g r a p h i c s / h i t _ s f x . h p p
2011-07-24 10:29:16 -04:00
s r c / g r a p h i c s / i r r _ d r i v e r . c p p
s r c / g r a p h i c s / i r r _ d r i v e r . h p p
s r c / g r a p h i c s / l o d _ n o d e . c p p
s r c / g r a p h i c s / l o d _ n o d e . h p p
s r c / g r a p h i c s / m a t e r i a l . c p p
s r c / g r a p h i c s / m a t e r i a l . h p p
s r c / g r a p h i c s / m a t e r i a l _ m a n a g e r . c p p
s r c / g r a p h i c s / m a t e r i a l _ m a n a g e r . h p p
s r c / g r a p h i c s / m e s h _ t o o l s . c p p
s r c / g r a p h i c s / m e s h _ t o o l s . h p p
s r c / g r a p h i c s / m o v i n g _ t e x t u r e . c p p
s r c / g r a p h i c s / m o v i n g _ t e x t u r e . h p p
s r c / g r a p h i c s / p a r t i c l e _ e m i t t e r . c p p
s r c / g r a p h i c s / p a r t i c l e _ e m i t t e r . h p p
s r c / g r a p h i c s / p a r t i c l e _ k i n d . c p p
s r c / g r a p h i c s / p a r t i c l e _ k i n d . h p p
s r c / g r a p h i c s / p a r t i c l e _ k i n d _ m a n a g e r . c p p
s r c / g r a p h i c s / p a r t i c l e _ k i n d _ m a n a g e r . h p p
s r c / g r a p h i c s / p e r _ c a m e r a _ n o d e . c p p
s r c / g r a p h i c s / p e r _ c a m e r a _ n o d e . h p p
s r c / g r a p h i c s / p o s t _ p r o c e s s i n g . c p p
s r c / g r a p h i c s / p o s t _ p r o c e s s i n g . h p p
s r c / g r a p h i c s / r a i n . c p p
s r c / g r a p h i c s / r a i n . h p p
2011-09-13 20:48:49 -04:00
s r c / g r a p h i c s / r e f e r e e . c p p
s r c / g r a p h i c s / r e f e r e e . h p p
2011-07-24 10:29:16 -04:00
s r c / g r a p h i c s / s h a d o w . c p p
s r c / g r a p h i c s / s h a d o w . h p p
s r c / g r a p h i c s / s k i d _ m a r k s . c p p
s r c / g r a p h i c s / s k i d _ m a r k s . h p p
s r c / g r a p h i c s / s l i p _ s t r e a m . c p p
s r c / g r a p h i c s / s l i p _ s t r e a m . h p p
s r c / g r a p h i c s / s t a r s . c p p
s r c / g r a p h i c s / s t a r s . h p p
s r c / g u i e n g i n e / a b s t r a c t _ s t a t e _ m a n a g e r . c p p
s r c / g u i e n g i n e / a b s t r a c t _ s t a t e _ m a n a g e r . h p p
s r c / g u i e n g i n e / a b s t r a c t _ t o p _ l e v e l _ c o n t a i n e r . c p p
s r c / g u i e n g i n e / a b s t r a c t _ t o p _ l e v e l _ c o n t a i n e r . h p p
s r c / g u i e n g i n e / C G U I S p r i t e B a n k . c p p
s r c / g u i e n g i n e / C G U I S p r i t e B a n k . h
s r c / g u i e n g i n e / e n g i n e . c p p
s r c / g u i e n g i n e / e v e n t _ h a n d l e r . c p p
s r c / g u i e n g i n e / e v e n t _ h a n d l e r . h p p
s r c / g u i e n g i n e / l a y o u t _ m a n a g e r . c p p
s r c / g u i e n g i n e / l a y o u t _ m a n a g e r . h p p
s r c / g u i e n g i n e / m o d a l d i a l o g . c p p
s r c / g u i e n g i n e / m o d a l d i a l o g . h p p
s r c / g u i e n g i n e / s c a l a b l e _ f o n t . c p p
s r c / g u i e n g i n e / s c a l a b l e _ f o n t . h p p
s r c / g u i e n g i n e / s c r e e n . c p p
s r c / g u i e n g i n e / s c r e e n . h p p
s r c / g u i e n g i n e / s c r e e n _ l o a d e r . c p p
s r c / g u i e n g i n e / s k i n . c p p
s r c / g u i e n g i n e / s k i n . h p p
s r c / g u i e n g i n e / w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / b u b b l e _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / b u b b l e _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / b u t t o n _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / b u t t o n _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / C G U I E d i t B o x . c p p
s r c / g u i e n g i n e / w i d g e t s / C G U I E d i t B o x . h
s r c / g u i e n g i n e / w i d g e t s / c h e c k _ b o x _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / d y n a m i c _ r i b b o n _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / d y n a m i c _ r i b b o n _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s . h p p
s r c / g u i e n g i n e / w i d g e t s / i c o n _ b u t t o n _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / i c o n _ b u t t o n _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / l a b e l _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / l a b e l _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / l i s t _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / l i s t _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / m o d e l _ v i e w _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / m o d e l _ v i e w _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / p r o g r e s s _ b a r _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / p r o g r e s s _ b a r _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / r i b b o n _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / r i b b o n _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / s p i n n e r _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / s p i n n e r _ w i d g e t . h p p
s r c / g u i e n g i n e / w i d g e t s / t e x t _ b o x _ w i d g e t . c p p
s r c / g u i e n g i n e / w i d g e t s / t e x t _ b o x _ w i d g e t . h p p
s r c / i n p u t / b i n d i n g . c p p
s r c / i n p u t / b i n d i n g . h p p
s r c / i n p u t / d e v i c e _ m a n a g e r . c p p
s r c / i n p u t / d e v i c e _ m a n a g e r . h p p
s r c / i n p u t / i n p u t _ d e v i c e . c p p
s r c / i n p u t / i n p u t _ d e v i c e . h p p
s r c / i n p u t / i n p u t . h p p
s r c / i n p u t / i n p u t _ m a n a g e r . c p p
s r c / i n p u t / i n p u t _ m a n a g e r . h p p
s r c / i o / f i l e _ m a n a g e r . c p p
s r c / i o / f i l e _ m a n a g e r . h p p
s r c / i o / x m l _ n o d e . c p p
s r c / i o / x m l _ n o d e . h p p
s r c / i o / x m l _ w r i t e r . c p p
s r c / i o / x m l _ w r i t e r . h p p
s r c / i t e m s / a t t a c h m e n t . c p p
s r c / i t e m s / a t t a c h m e n t . h p p
s r c / i t e m s / a t t a c h m e n t _ m a n a g e r . c p p
s r c / i t e m s / a t t a c h m e n t _ m a n a g e r . h p p
s r c / i t e m s / a t t a c h m e n t _ p l u g i n . h p p
s r c / i t e m s / b o w l i n g . c p p
s r c / i t e m s / b o w l i n g . h p p
s r c / i t e m s / c a k e . c p p
s r c / i t e m s / c a k e . h p p
s r c / i t e m s / f l y a b l e . c p p
s r c / i t e m s / f l y a b l e . h p p
s r c / i t e m s / i t e m . c p p
s r c / i t e m s / i t e m . h p p
s r c / i t e m s / i t e m _ m a n a g e r . c p p
s r c / i t e m s / i t e m _ m a n a g e r . h p p
s r c / i t e m s / p l u n g e r . c p p
s r c / i t e m s / p l u n g e r . h p p
s r c / i t e m s / p o w e r u p . c p p
s r c / i t e m s / p o w e r u p . h p p
s r c / i t e m s / p o w e r u p _ m a n a g e r . c p p
s r c / i t e m s / p o w e r u p _ m a n a g e r . h p p
s r c / i t e m s / p r o j e c t i l e _ m a n a g e r . c p p
s r c / i t e m s / p r o j e c t i l e _ m a n a g e r . h p p
s r c / i t e m s / r u b b e r _ b a l l . c p p
s r c / i t e m s / r u b b e r _ b a l l . h p p
s r c / i t e m s / r u b b e r _ b a n d . c p p
s r c / i t e m s / r u b b e r _ b a n d . h p p
s r c / i t e m s / s w a t t e r . c p p
s r c / i t e m s / s w a t t e r . h p p
s r c / k a r t s / c o n t r o l l e r / a i _ b a s e _ c o n t r o l l e r . c p p
s r c / k a r t s / c o n t r o l l e r / a i _ b a s e _ c o n t r o l l e r . h p p
s r c / k a r t s / c o n t r o l l e r / c o n t r o l l e r . c p p
s r c / k a r t s / c o n t r o l l e r / c o n t r o l l e r . h p p
s r c / k a r t s / c o n t r o l l e r / d e f a u l t _ a i _ c o n t r o l l e r . c p p
s r c / k a r t s / c o n t r o l l e r / d e f a u l t _ a i _ c o n t r o l l e r . h p p
s r c / k a r t s / c o n t r o l l e r / e n d _ c o n t r o l l e r . c p p
s r c / k a r t s / c o n t r o l l e r / e n d _ c o n t r o l l e r . h p p
s r c / k a r t s / c o n t r o l l e r / k a r t _ c o n t r o l . h p p
s r c / k a r t s / c o n t r o l l e r / n e w _ a i _ c o n t r o l l e r . c p p
s r c / k a r t s / c o n t r o l l e r / n e w _ a i _ c o n t r o l l e r . h p p
s r c / k a r t s / c o n t r o l l e r / p l a y e r _ c o n t r o l l e r . c p p
s r c / k a r t s / c o n t r o l l e r / p l a y e r _ c o n t r o l l e r . h p p
s r c / k a r t s / e m e r g e n c y _ a n i m a t i o n . c p p
s r c / k a r t s / e m e r g e n c y _ a n i m a t i o n . h p p
s r c / k a r t s / k a r t . c p p
s r c / k a r t s / k a r t . h p p
2011-07-31 20:06:13 -04:00
s r c / k a r t s / k a r t _ w i t h _ s t a t s . c p p
s r c / k a r t s / k a r t _ w i t h _ s t a t s . h p p
2011-07-24 10:29:16 -04:00
s r c / k a r t s / k a r t _ m o d e l . c p p
s r c / k a r t s / k a r t _ m o d e l . h p p
s r c / k a r t s / k a r t _ p r o p e r t i e s . c p p
s r c / k a r t s / k a r t _ p r o p e r t i e s . h p p
s r c / k a r t s / k a r t _ p r o p e r t i e s _ m a n a g e r . c p p
s r c / k a r t s / k a r t _ p r o p e r t i e s _ m a n a g e r . h p p
s r c / k a r t s / m a x _ s p e e d . c p p
s r c / k a r t s / m a x _ s p e e d . h p p
s r c / k a r t s / m o v e a b l e . c p p
s r c / k a r t s / m o v e a b l e . h p p
s r c / m o d e s / f o l l o w _ t h e _ l e a d e r . c p p
s r c / m o d e s / f o l l o w _ t h e _ l e a d e r . h p p
s r c / m o d e s / g a m e _ t u t o r i a l . c p p
s r c / m o d e s / g a m e _ t u t o r i a l . h p p
s r c / m o d e s / l i n e a r _ w o r l d . c p p
s r c / m o d e s / l i n e a r _ w o r l d . h p p
s r c / m o d e s / p r o f i l e _ w o r l d . c p p
s r c / m o d e s / p r o f i l e _ w o r l d . h p p
s r c / m o d e s / s t a n d a r d _ r a c e . c p p
s r c / m o d e s / s t a n d a r d _ r a c e . h p p
s r c / m o d e s / t h r e e _ s t r i k e s _ b a t t l e . c p p
s r c / m o d e s / t h r e e _ s t r i k e s _ b a t t l e . h p p
s r c / m o d e s / t u t o r i a l _ r a c e . c p p
s r c / m o d e s / t u t o r i a l _ r a c e . h p p
s r c / m o d e s / w o r l d . c p p
s r c / m o d e s / w o r l d . h p p
s r c / m o d e s / w o r l d _ s t a t u s . c p p
s r c / m o d e s / w o r l d _ s t a t u s . h p p
s r c / m o d e s / w o r l d _ w i t h _ r a n k . c p p
s r c / m o d e s / w o r l d _ w i t h _ r a n k . h p p
s r c / n e t w o r k / c h a r a c t e r _ c o n f i r m _ m e s s a g e . h p p
s r c / n e t w o r k / c h a r a c t e r _ i n f o _ m e s s a g e . h p p
s r c / n e t w o r k / c h a r a c t e r _ s e l e c t e d _ m e s s a g e . h p p
s r c / n e t w o r k / c o n n e c t _ m e s s a g e . c p p
s r c / n e t w o r k / c o n n e c t _ m e s s a g e . h p p
s r c / n e t w o r k / f l y a b l e _ i n f o . h p p
s r c / n e t w o r k / i t e m _ i n f o . h p p
s r c / n e t w o r k / k a r t _ c o n t r o l _ m e s s a g e . c p p
s r c / n e t w o r k / k a r t _ c o n t r o l _ m e s s a g e . h p p
s r c / n e t w o r k / k a r t _ u p d a t e _ m e s s a g e . c p p
s r c / n e t w o r k / k a r t _ u p d a t e _ m e s s a g e . h p p
s r c / n e t w o r k / m e s s a g e . c p p
s r c / n e t w o r k / m e s s a g e . h p p
s r c / n e t w o r k / n e t w o r k _ k a r t . c p p
s r c / n e t w o r k / n e t w o r k _ k a r t . h p p
s r c / n e t w o r k / n e t w o r k _ m a n a g e r . c p p
s r c / n e t w o r k / n e t w o r k _ m a n a g e r . h p p
s r c / n e t w o r k / n u m _ p l a y e r s _ m e s s a g e . h p p
s r c / n e t w o r k / r a c e _ i n f o _ m e s s a g e . c p p
s r c / n e t w o r k / r a c e _ i n f o _ m e s s a g e . h p p
s r c / n e t w o r k / r a c e _ r e s u l t _ a c k _ m e s s a g e . h p p
s r c / n e t w o r k / r a c e _ r e s u l t _ m e s s a g e . c p p
s r c / n e t w o r k / r a c e _ r e s u l t _ m e s s a g e . h p p
s r c / n e t w o r k / r a c e _ s t a r t _ m e s s a g e . h p p
s r c / n e t w o r k / r a c e _ s t a t e . c p p
s r c / n e t w o r k / r a c e _ s t a t e . h p p
s r c / n e t w o r k / r e m o t e _ k a r t _ i n f o . h p p
s r c / n e t w o r k / w o r l d _ l o a d e d _ m e s s a g e . h p p
s r c / p h y s i c s / b t K a r t . c p p
s r c / p h y s i c s / b t K a r t . h p p
s r c / p h y s i c s / b t K a r t R a y c a s t . c p p
s r c / p h y s i c s / b t K a r t R a y c a s t . h p p
s r c / p h y s i c s / b t U p r i g h t C o n s t r a i n t . c p p
s r c / p h y s i c s / b t U p r i g h t C o n s t r a i n t . h p p
s r c / p h y s i c s / i r r _ d e b u g _ d r a w e r . c p p
s r c / p h y s i c s / i r r _ d e b u g _ d r a w e r . h p p
s r c / p h y s i c s / k a r t _ m o t i o n _ s t a t e . h p p
s r c / p h y s i c s / p h y s i c a l _ o b j e c t . c p p
s r c / p h y s i c s / p h y s i c a l _ o b j e c t . h p p
s r c / p h y s i c s / p h y s i c s . c p p
s r c / p h y s i c s / p h y s i c s . h p p
2011-11-30 20:14:10 -05:00
s r c / p h y s i c s / s t k _ d y n a m i c s _ w o r l d . h p p
2011-07-24 10:29:16 -04:00
s r c / p h y s i c s / t r i a n g l e _ m e s h . c p p
s r c / p h y s i c s / t r i a n g l e _ m e s h . h p p
s r c / p h y s i c s / u s e r _ p o i n t e r . h p p
s r c / r a c e / g r a n d _ p r i x _ d a t a . c p p
s r c / r a c e / g r a n d _ p r i x _ d a t a . h p p
s r c / r a c e / g r a n d _ p r i x _ m a n a g e r . c p p
s r c / r a c e / g r a n d _ p r i x _ m a n a g e r . h p p
s r c / r a c e / h i g h s c o r e _ m a n a g e r . c p p
s r c / r a c e / h i g h s c o r e _ m a n a g e r . h p p
s r c / r a c e / h i g h s c o r e s . c p p
s r c / r a c e / h i g h s c o r e s . h p p
s r c / r a c e / h i s t o r y . c p p
s r c / r a c e / h i s t o r y . h p p
s r c / r a c e / r a c e _ m a n a g e r . c p p
s r c / r a c e / r a c e _ m a n a g e r . h p p
s r c / r e p l a y / r e p l a y _ b a s e . c p p
s r c / r e p l a y / r e p l a y _ b a s e . h p p
s r c / r e p l a y / r e p l a y _ b u f f e r s . c p p
s r c / r e p l a y / r e p l a y _ b u f f e r s . h p p
s r c / r e p l a y / r e p l a y _ b u f f e r _ t p l . h p p
s r c / r e p l a y / r e p l a y _ p l a y e r . c p p
s r c / r e p l a y / r e p l a y _ p l a y e r . h p p
s r c / r e p l a y / r e p l a y _ r e c o r d e r . c p p
s r c / r e p l a y / r e p l a y _ r e c o r d e r . h p p
s r c / s t a t e s _ s c r e e n s / a d d o n s _ s c r e e n . c p p
s r c / s t a t e s _ s c r e e n s / a d d o n s _ s c r e e n . h p p
s r c / s t a t e s _ s c r e e n s / a r e n a s _ s c r e e n . c p p
s r c / s t a t e s _ s c r e e n s / a r e n a s _ s c r e e n . h p p
s r c / s t a t e s _ s c r e e n s / c h a l l e n g e s . c p p
s r c / s t a t e s _ s c r e e n s / c h a l l e n g e s . h p p
s r c / s t a t e s _ s c r e e n s / c r e d i t s . c p p
s r c / s t a t e s _ s c r e e n s / c r e d i t s . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / a d d _ d e v i c e _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / a d d _ d e v i c e _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / a d d o n s _ l o a d i n g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / a d d o n s _ l o a d i n g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / c o n f i r m _ r e s o l u t i o n _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / c o n f i r m _ r e s o l u t i o n _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / e n t e r _ p l a y e r _ n a m e _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / e n t e r _ p l a y e r _ n a m e _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / g p _ i n f o _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / g p _ i n f o _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / m e s s a g e _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / m e s s a g e _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / p l a y e r _ i n f o _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / p l a y e r _ i n f o _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / p r e s s _ a _ k e y _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / p r e s s _ a _ k e y _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / r a c e _ o v e r _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / r a c e _ o v e r _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / r a c e _ p a u s e d _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / r a c e _ p a u s e d _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / t r a c k _ i n f o _ d i a l o g . c p p
s r c / s t a t e s _ s c r e e n s / d i a l o g s / t r a c k _ i n f o _ d i a l o g . h p p
s r c / s t a t e s _ s c r e e n s / f e a t u r e _ u n l o c k e d . c p p
s r c / s t a t e s _ s c r e e n s / f e a t u r e _ u n l o c k e d . h p p
s r c / s t a t e s _ s c r e e n s / g r a n d _ p r i x _ l o s e . c p p
s r c / s t a t e s _ s c r e e n s / g r a n d _ p r i x _ l o s e . h p p
s r c / s t a t e s _ s c r e e n s / g r a n d _ p r i x _ w i n . c p p
s r c / s t a t e s _ s c r e e n s / g r a n d _ p r i x _ w i n . h p p
s r c / s t a t e s _ s c r e e n s / h e l p _ s c r e e n _ 1 . c p p
s r c / s t a t e s _ s c r e e n s / h e l p _ s c r e e n _ 1 . h p p
s r c / s t a t e s _ s c r e e n s / h e l p _ s c r e e n _ 2 . c p p
s r c / s t a t e s _ s c r e e n s / h e l p _ s c r e e n _ 2 . h p p
s r c / s t a t e s _ s c r e e n s / h e l p _ s c r e e n _ 3 . c p p
s r c / s t a t e s _ s c r e e n s / h e l p _ s c r e e n _ 3 . h p p
s r c / s t a t e s _ s c r e e n s / h e l p _ s c r e e n _ 4 . c p p
s r c / s t a t e s _ s c r e e n s / h e l p _ s c r e e n _ 4 . h p p
s r c / s t a t e s _ s c r e e n s / k a r t _ s e l e c t i o n . c p p
s r c / s t a t e s _ s c r e e n s / k a r t _ s e l e c t i o n . h p p
s r c / s t a t e s _ s c r e e n s / m a i n _ m e n u _ s c r e e n . c p p
s r c / s t a t e s _ s c r e e n s / m a i n _ m e n u _ s c r e e n . h p p
s r c / s t a t e s _ s c r e e n s / m i n i m a l _ r a c e _ g u i . c p p
s r c / s t a t e s _ s c r e e n s / m i n i m a l _ r a c e _ g u i . h p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ a u d i o . c p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ a u d i o . h p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ i n p u t 2 . c p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ i n p u t 2 . h p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ i n p u t . c p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ i n p u t . h p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ p l a y e r s . c p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ p l a y e r s . h p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ u i . c p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ v i d e o . c p p
s r c / s t a t e s _ s c r e e n s / o p t i o n s _ s c r e e n _ v i d e o . h p p
s r c / s t a t e s _ s c r e e n s / r a c e _ g u i _ b a s e . c p p
s r c / s t a t e s _ s c r e e n s / r a c e _ g u i _ b a s e . h p p
s r c / s t a t e s _ s c r e e n s / r a c e _ g u i . c p p
s r c / s t a t e s _ s c r e e n s / r a c e _ g u i . h p p
s r c / s t a t e s _ s c r e e n s / r a c e _ r e s u l t _ g u i . c p p
s r c / s t a t e s _ s c r e e n s / r a c e _ r e s u l t _ g u i . h p p
s r c / s t a t e s _ s c r e e n s / r a c e _ s e t u p _ s c r e e n . c p p
s r c / s t a t e s _ s c r e e n s / r a c e _ s e t u p _ s c r e e n . h p p
s r c / s t a t e s _ s c r e e n s / s t a t e _ m a n a g e r . c p p
s r c / s t a t e s _ s c r e e n s / s t a t e _ m a n a g e r . h p p
s r c / s t a t e s _ s c r e e n s / t r a c k s _ s c r e e n . c p p
s r c / s t a t e s _ s c r e e n s / t r a c k s _ s c r e e n . h p p
s r c / s t a t e s _ s c r e e n s / t u t o r i a l _ s c r e e n . c p p
s r c / s t a t e s _ s c r e e n s / t u t o r i a l _ s c r e e n . h p p
s r c / t i n y g e t t e x t / d i c t i o n a r y . c p p
s r c / t i n y g e t t e x t / d i c t i o n a r y . h p p
s r c / t i n y g e t t e x t / d i c t i o n a r y _ m a n a g e r . c p p
s r c / t i n y g e t t e x t / f i l e _ s y s t e m . h p p
s r c / t i n y g e t t e x t / i c o n v . c p p
s r c / t i n y g e t t e x t / i c o n v . h p p
s r c / t i n y g e t t e x t / l a n g u a g e . c p p
s r c / t i n y g e t t e x t / l a n g u a g e . h p p
s r c / t i n y g e t t e x t / l o g . c p p
s r c / t i n y g e t t e x t / l o g . h p p
s r c / t i n y g e t t e x t / l o g _ s t r e a m . h p p
s r c / t i n y g e t t e x t / p l u r a l _ f o r m s . c p p
s r c / t i n y g e t t e x t / p l u r a l _ f o r m s . h p p
s r c / t i n y g e t t e x t / p o _ p a r s e r . c p p
s r c / t i n y g e t t e x t / p o _ p a r s e r . h p p
s r c / t i n y g e t t e x t / s t k _ f i l e _ s y s t e m . c p p
s r c / t i n y g e t t e x t / s t k _ f i l e _ s y s t e m . h p p
s r c / t i n y g e t t e x t / t i n y g e t t e x t . c p p
s r c / t i n y g e t t e x t / t i n y g e t t e x t . h p p
s r c / t r a c k s / a m b i e n t _ l i g h t _ s p h e r e . c p p
s r c / t r a c k s / a m b i e n t _ l i g h t _ s p h e r e . h p p
s r c / t r a c k s / b e z i e r _ c u r v e . c p p
s r c / t r a c k s / b e z i e r _ c u r v e . h p p
s r c / t r a c k s / c h e c k _ l a p . c p p
s r c / t r a c k s / c h e c k _ l a p . h p p
s r c / t r a c k s / c h e c k _ l i n e . c p p
s r c / t r a c k s / c h e c k _ l i n e . h p p
s r c / t r a c k s / c h e c k _ m a n a g e r . c p p
s r c / t r a c k s / c h e c k _ m a n a g e r . h p p
s r c / t r a c k s / c h e c k _ s p h e r e . c p p
s r c / t r a c k s / c h e c k _ s p h e r e . h p p
s r c / t r a c k s / c h e c k _ s t r u c t u r e . c p p
s r c / t r a c k s / c h e c k _ s t r u c t u r e . h p p
s r c / t r a c k s / g r a p h _ n o d e . c p p
s r c / t r a c k s / g r a p h _ n o d e . h p p
s r c / t r a c k s / q u a d . c p p
s r c / t r a c k s / q u a d _ g r a p h . c p p
s r c / t r a c k s / q u a d _ g r a p h . h p p
s r c / t r a c k s / q u a d . h p p
s r c / t r a c k s / q u a d _ s e t . c p p
s r c / t r a c k s / q u a d _ s e t . h p p
s r c / t r a c k s / t e r r a i n _ i n f o . c p p
s r c / t r a c k s / t e r r a i n _ i n f o . h p p
s r c / t r a c k s / t r a c k . c p p
s r c / t r a c k s / t r a c k _ m a n a g e r . c p p
s r c / t r a c k s / t r a c k _ m a n a g e r . h p p
s r c / t r a c k s / t r a c k _ o b j e c t . c p p
s r c / t r a c k s / t r a c k _ o b j e c t . h p p
s r c / t r a c k s / t r a c k _ o b j e c t _ m a n a g e r . c p p
s r c / t r a c k s / t r a c k _ o b j e c t _ m a n a g e r . h p p
2011-08-04 19:33:41 -04:00
s r c / t r a c k s / t r a c k _ s e c t o r . c p p
s r c / t r a c k s / t r a c k _ s e c t o r . h p p
2011-07-24 10:29:16 -04:00
s r c / t u t o r i a l / t u t o r i a l . c p p
s r c / t u t o r i a l / t u t o r i a l _ d a t a . c p p
s r c / t u t o r i a l / t u t o r i a l _ d a t a . h p p
s r c / t u t o r i a l / t u t o r i a l . h p p
s r c / t u t o r i a l / t u t o r i a l _ m a n a g e r . c p p
s r c / t u t o r i a l / t u t o r i a l _ m a n a g e r . h p p
s r c / u t i l s / a l i g n e d _ a r r a y . h p p
s r c / u t i l s / c o n s t a n t s . c p p
s r c / u t i l s / c o n s t a n t s . h p p
2011-10-24 21:00:33 -04:00
s r c / u t i l s / l e a k _ c h e c k . c p p
s r c / u t i l s / l e a k _ c h e c k . h p p
2011-07-24 10:29:16 -04:00
s r c / u t i l s / n o _ c o p y . h p p
s r c / u t i l s / p r o f i l e r . c p p
s r c / u t i l s / p r o f i l e r . h p p
s r c / u t i l s / p t r _ v e c t o r . h p p
s r c / u t i l s / r a n d o m _ g e n e r a t o r . c p p
s r c / u t i l s / r a n d o m _ g e n e r a t o r . h p p
s r c / u t i l s / s t r i n g _ u t i l s . c p p
s r c / u t i l s / s t r i n g _ u t i l s . h p p
s r c / u t i l s / s y n c h r o n i s e d . h p p
s r c / u t i l s / t i m e . h p p
s r c / u t i l s / t r a n s l a t i o n . c p p
s r c / u t i l s / t r a n s l a t i o n . h p p
s r c / u t i l s / u t f 8 / c o r e . h
s r c / u t i l s / u t f 8 . h
s r c / u t i l s / u t f 8 / u n c h e c k e d . h
s r c / u t i l s / v e c 3 . c p p
2011-08-29 14:17:45 -04:00
s r c / u t i l s / v e c 3 . h p p )
if ( APPLE )
# icon files to copy in the bundle
set ( OSX_ICON_FILES ${ PROJECT_SOURCE_DIR } /src/ide/Xcode/stk.icns )
set_source_files_properties ( ${ OSX_ICON_FILES } PROPERTIES MACOSX_PACKAGE_LOCATION Resources )
set ( SRCS ${ SRCS } ${ OSX_ICON_FILES } )
# build the executable and create an app bundle
add_executable ( supertuxkart MACOSX_BUNDLE ${ SRCS } )
target_link_libraries ( supertuxkart
b u l l e t d y n a m i c s
b u l l e t c o l l i s i o n
b u l l e t m a t h
e n e t
$ { C U R L _ L I B R A R I E S }
# We could use smarter detection of the frameworks but supporting a single official setup makes things easy...
/ L i b r a r y / F r a m e w o r k s / I r r F r a m e w o r k . f r a m e w o r k
/ L i b r a r y / F r a m e w o r k s / O g g . f r a m e w o r k
/ L i b r a r y / F r a m e w o r k s / O p e n A L . f r a m e w o r k
/ L i b r a r y / F r a m e w o r k s / V o r b i s . f r a m e w o r k
2011-10-21 21:01:22 -04:00
# TODO: allow linking against frameworks from a SDK.
2011-08-29 14:17:45 -04:00
/ S y s t e m / L i b r a r y / F r a m e w o r k s / A G L . f r a m e w o r k
/ S y s t e m / L i b r a r y / F r a m e w o r k s / I O K i t . f r a m e w o r k
/ S y s t e m / L i b r a r y / F r a m e w o r k s / Q u i c k T i m e . f r a m e w o r k
/ S y s t e m / L i b r a r y / F r a m e w o r k s / C a r b o n . f r a m e w o r k
/ S y s t e m / L i b r a r y / F r a m e w o r k s / A u d i o U n i t . f r a m e w o r k
/ S y s t e m / L i b r a r y / F r a m e w o r k s / C o c o a . f r a m e w o r k
/ S y s t e m / L i b r a r y / F r a m e w o r k s / O p e n G L . f r a m e w o r k )
# configure CMake to use a custom Info.plist
set_target_properties ( supertuxkart PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${ PROJECT_SOURCE_DIR } /src/ide/Xcode/SuperTuxKart-Info.plist )
2011-08-29 14:30:19 -04:00
add_definitions ( `ln -sf ${ PROJECT_SOURCE_DIR } /data ${ CMAKE_BINARY_DIR } /bin/supertuxkart.app/Contents/Resources` )
2011-08-29 14:17:45 -04:00
else ( )
2011-11-14 18:27:31 -05:00
2011-11-14 18:52:50 -05:00
add_definitions ( -DSUPERTUXKART_DATADIR=\ "${CMAKE_INSTALL_PREFIX}/share/games/supertuxkart\" )
2011-11-14 18:27:31 -05:00
2011-08-29 14:17:45 -04:00
# Build the final executable
add_executable ( supertuxkart ${ SRCS } )
target_link_libraries ( supertuxkart
I r r l i c h t
b u l l e t d y n a m i c s
b u l l e t c o l l i s i o n
b u l l e t m a t h
e n e t
2011-11-18 15:58:36 -05:00
p t h r e a d
2011-08-29 14:17:45 -04:00
$ { C U R L _ L I B R A R I E S }
$ { O P E N G L _ L I B R A R I E S }
$ { O P E N A L _ L I B R A R Y }
v o r b i s f i l e )
endif ( )
2011-07-24 10:29:16 -04:00
2011-07-24 14:40:20 -04:00
if ( USE_FRIBIDI )
2011-08-29 14:17:45 -04:00
if ( APPLE )
2011-10-21 21:02:35 -04:00
target_link_libraries ( supertuxkart /Library/Frameworks/fribidi.framework )
2011-08-29 14:17:45 -04:00
else ( )
target_link_libraries ( supertuxkart fribidi )
endif ( )
2011-10-18 18:59:36 -04:00
add_definitions ( -DENABLE_BIDI=1 )
2011-07-24 14:40:20 -04:00
endif ( )
2011-10-18 18:59:36 -04:00
2011-08-01 15:18:49 -04:00
if ( UNIX AND NOT APPLE )
2011-10-21 21:02:35 -04:00
target_link_libraries ( supertuxkart Xxf86vm )
2011-07-24 14:40:20 -04:00
elseif ( APPLE )
2011-08-29 14:17:45 -04:00
# We could use smarter detection of the frameworks but supporting a single official setup makes things easy...
target_link_libraries ( supertuxkart /Library/Frameworks/IrrFramework.framework )
target_link_libraries ( supertuxkart /Library/Frameworks/Ogg.framework )
target_link_libraries ( supertuxkart /Library/Frameworks/OpenAL.framework )
target_link_libraries ( supertuxkart /Library/Frameworks/Vorbis.framework )
target_link_libraries ( supertuxkart /System/Library/Frameworks/AGL.framework )
target_link_libraries ( supertuxkart /System/Library/Frameworks/IOKit.framework )
target_link_libraries ( supertuxkart /System/Library/Frameworks/QuickTime.framework )
target_link_libraries ( supertuxkart /System/Library/Frameworks/Carbon.framework )
target_link_libraries ( supertuxkart /System/Library/Frameworks/AudioUnit.framework )
target_link_libraries ( supertuxkart /System/Library/Frameworks/Cocoa.framework )
target_link_libraries ( supertuxkart /System/Library/Frameworks/OpenGL.framework )
2011-07-24 14:40:20 -04:00
endif ( )
2011-09-05 20:15:06 -04:00
2011-10-21 20:36:30 -04:00
# ==== Make dist target ====
2011-09-05 20:15:06 -04:00
add_custom_target ( dist
C O M M A N D r m - r f $ { C M A K E _ B I N A R Y _ D I R } / S u p e r T u x K a r t - $ { P R O J E C T _ V E R S I O N } & & r m - f $ { C M A K E _ B I N A R Y _ D I R } / S u p e r T u x K a r t - $ { P R O J E C T _ V E R S I O N } . t a r . b z 2
& & e c h o " E x p o r t i n g . . . "
& & s v n e x p o r t $ { P R O J E C T _ S O U R C E _ D I R } $ { C M A K E _ B I N A R Y _ D I R } / S u p e r T u x K a r t - $ { P R O J E C T _ V E R S I O N }
& & e c h o " C o m p r e s s i n g . . . "
& & c d $ { C M A K E _ B I N A R Y _ D I R }
& & t a r - c j f $ { C M A K E _ B I N A R Y _ D I R } / S u p e r T u x K a r t - $ { P R O J E C T _ V E R S I O N } . t a r . b z 2 . / S u p e r T u x K a r t - $ { P R O J E C T _ V E R S I O N }
& & e c h o " D o n e , c l e a n i n g u p "
& & r m - r f $ { C M A K E _ B I N A R Y _ D I R } / S u p e r T u x K a r t - $ { P R O J E C T _ V E R S I O N }
W O R K I N G _ D I R E C T O R Y $ { C M A K E _ S O U R C E _ D I R } )
2011-10-21 20:36:30 -04:00
# ==== Install target ====
MACRO ( installfilemacro filepath )
set ( source_regex "(.*)/data/(.*)" )
set ( svn_regex "(.*).svn(.*)" )
string ( REGEX MATCH "${svn_regex}" is_svn_dir "${curr}" )
if ( is_svn_dir )
# don't install SVN files
else ( )
string ( REGEX MATCH "${source_regex}" source_path "${curr}" )
if ( source_path )
string ( REGEX REPLACE "${source_regex}" "\\2" after_source "${source_path}" )
get_filename_component ( install_location ${ after_source } PATH )
install ( FILES ${ filepath } DESTINATION "share/games/supertuxkart/data/${install_location}" )
endif ( source_path )
endif ( )
ENDMACRO ( installfilemacro )
FILE ( GLOB_RECURSE datafiles "${CMAKE_CURRENT_SOURCE_DIR}/data/*" )
foreach ( curr ${ datafiles } )
installfilemacro ( ${ curr } )
endforeach ( )
2011-10-22 14:20:51 -04:00
install ( TARGETS supertuxkart RUNTIME DESTINATION games BUNDLE DESTINATION . )
2011-10-21 20:36:30 -04:00
install ( FILES data/supertuxkart.desktop DESTINATION share/applications )
install ( FILES data/supertuxkart_32.xpm data/supertuxkart_64.xpm DESTINATION share/pixmaps )
2011-10-20 22:07:12 -04:00
2011-10-21 21:01:22 -04:00
add_custom_target ( GenerateDesktopFile
C O M M A N D s e d ' s \ #PREFIX\#${CMAKE_INSTALL_PREFIX}\#' ${CMAKE_CURRENT_SOURCE_DIR}/data/supertuxkart_desktop.template | sed 's\#VERSION\#${PROJECT_VERSION}\#' > ${CMAKE_CURRENT_SOURCE_DIR}/data/supertuxkart.desktop
W O R K I N G _ D I R E C T O R Y $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } )
ADD_DEPENDENCIES ( supertuxkart GenerateDesktopFile )