diff --git a/CMakeLists.txt b/CMakeLists.txt index fe6405d..a8b1548 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,11 @@ set(PNAME Game) project(${PNAME}) # Set up variables, and find SFML -set(SFML_ROOT root CACHE STRING "User specified path") -set(SFML_INCLUDE_DIR ${SFML_ROOT}/include) +if (WIN32) + set(SFML_ROOT root CACHE STRING "User specified path") + set(SFML_INCLUDE_DIR ${SFML_ROOT}/include) +endif() + set(SFML_COMPONENTS graphics window system network audio) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) find_package(SFML 2.1 COMPONENTS ${SFML_COMPONENTS} REQUIRED) @@ -58,6 +61,7 @@ target_link_libraries (${PNAME} ${SFML_LIBRARIES} ${SFML_DEPENDENCIES}) target_link_libraries (${PNAME} ${OpenCL_LIBRARY}) target_link_libraries (${PNAME} ${OPENGL_LIBRARIES}) target_link_libraries (${PNAME} ${GLEW_LIBRARIES}) +target_link_libraries (${PNAME} -lpthread) #target_link_libraries (${PNAME} ${Vulkan_LIBRARIES}) # Setup to use C++11 diff --git a/include/GL_Testing.h b/include/GL_Testing.h index e2746d6..30ba664 100644 --- a/include/GL_Testing.h +++ b/include/GL_Testing.h @@ -1,6 +1,8 @@ #pragma once #include #include +#include + #define GLEW_STATIC #include diff --git a/include/Map.h b/include/Map.h index 93e7f4f..bc184ca 100644 --- a/include/Map.h +++ b/include/Map.h @@ -12,6 +12,7 @@ #include #include #include +#include #define _USE_MATH_DEFINES #include diff --git a/include/Old_map.h b/include/Old_Map.h similarity index 100% rename from include/Old_map.h rename to include/Old_Map.h diff --git a/include/RayCaster.h b/include/RayCaster.h index 0b49e73..e3f9d44 100644 --- a/include/RayCaster.h +++ b/include/RayCaster.h @@ -2,7 +2,7 @@ #include #include #include -#include "Old_map.h" +#include "Old_Map.h" #include "Camera.h" diff --git a/include/Renderer.h b/include/Renderer.h index 6b1773f..686bd57 100644 --- a/include/Renderer.h +++ b/include/Renderer.h @@ -4,7 +4,7 @@ #include "SFML/Graphics.hpp" #include "CL_Wrapper.h" #include "Camera.h" -#include "Old_map.h" +#include "Old_Map.h" #include "RayCaster.h" // Renderer needs to handle the distinction between a few difference circumstances. diff --git a/src/Old_map.cpp b/src/Old_Map.cpp similarity index 99% rename from src/Old_map.cpp rename to src/Old_Map.cpp index 35a5ac6..436bc1b 100644 --- a/src/Old_map.cpp +++ b/src/Old_Map.cpp @@ -3,7 +3,7 @@ #include #include #include "util.hpp" -#include +#include Old_Map::Old_Map(sf::Vector3i dim) { dimensions = dim;