From 4cf6ab8e394d4f11d3eff1914bb58f3994d92bc6 Mon Sep 17 00:00:00 2001 From: Ivan Hernandez Date: Tue, 18 Jan 2011 19:55:10 -0600 Subject: [PATCH] Edited CMakeLists and fns.h to allow sqrt and SizeD to work --- CMakeLists.txt | 2 +- fns.cpp | 1 + fns.h | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.11.0