From: Ivan Hernandez Date: Wed, 19 Jan 2011 01:55:10 +0000 (-0600) Subject: Edited CMakeLists and fns.h to allow sqrt and SizeD to work X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=4cf6ab8e394d4f11d3eff1914bb58f3994d92bc6;p=IvanGame.git Edited CMakeLists and fns.h to allow sqrt and SizeD to work --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2de8426..1661778 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,6 @@ project(game) find_package(SDL REQUIRED) find_package(SDL_image REQUIRED) -add_executable(game Animation.cpp fns.cpp Game.cpp Level.cpp main.cpp Sprite.cpp Text.cpp Actor.cpp Background.cpp LevelWorld.cpp) +add_executable(game Animation.cpp fns.cpp Game.cpp Level.cpp main.cpp Sprite.cpp Text.cpp Actor.cpp Background.cpp LevelWorld.cpp WorldObject.cpp Collision.cpp) target_link_libraries(game ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY}) diff --git a/fns.cpp b/fns.cpp index 1a7da66..2a7719a 100644 --- a/fns.cpp +++ b/fns.cpp @@ -1,5 +1,6 @@ #include "fns.h" #include +#include #ifndef RELEASE #include diff --git a/fns.h b/fns.h index 6d7967a..54bdbe3 100644 --- a/fns.h +++ b/fns.h @@ -9,6 +9,8 @@ using namespace std; SDL_Surface* LoadImage( std::string filename );/**< Loads supported images. */ +class SizeD; + /** 2D position or vector placed here because of general access*/ class Point2D {