Skip to content

Commit

Permalink
win owerrides
Browse files Browse the repository at this point in the history
  • Loading branch information
averrin committed Sep 17, 2017
1 parent 532744b commit 8954ac7
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ add_executable(${EXECUTABLE_NAME}
${BACKWARD_ENABLE}
)

add_backward(mapgen)
#add_backward(mapgen)

set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
Expand Down
23 changes: 9 additions & 14 deletions backward-cpp/cmake_install.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Install script for directory: /home/alexeynabrodov/projects/mapgen/backward-cpp
# Install script for directory: C:/Users/averr_000/Documents/GitHub/mapgen/backward-cpp

# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local")
set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/mapgen")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")

Expand All @@ -12,7 +12,7 @@ if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
else()
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
set(CMAKE_INSTALL_CONFIG_NAME "Release")
endif()
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
endif()
Expand All @@ -27,32 +27,27 @@ if(NOT CMAKE_INSTALL_COMPONENT)
endif()
endif()

# Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
set(CMAKE_INSTALL_SO_NO_EXE "1")
endif()

if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
if("${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
"/usr/local/include/backward.hpp")
"C:/Program Files (x86)/mapgen/include/backward.hpp")
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
endif()
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
endif()
file(INSTALL DESTINATION "/usr/local/include" TYPE FILE FILES "/home/alexeynabrodov/projects/mapgen/backward-cpp/backward.hpp")
file(INSTALL DESTINATION "C:/Program Files (x86)/mapgen/include" TYPE FILE FILES "C:/Users/averr_000/Documents/GitHub/mapgen/backward-cpp/backward.hpp")
endif()

if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
if("${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
"/usr/local/lib/backward/BackwardConfig.cmake")
"C:/Program Files (x86)/mapgen/lib/backward/BackwardConfig.cmake")
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
endif()
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
endif()
file(INSTALL DESTINATION "/usr/local/lib/backward" TYPE FILE FILES "/home/alexeynabrodov/projects/mapgen/backward-cpp/BackwardConfig.cmake")
file(INSTALL DESTINATION "C:/Program Files (x86)/mapgen/lib/backward" TYPE FILE FILES "C:/Users/averr_000/Documents/GitHub/mapgen/backward-cpp/BackwardConfig.cmake")
endif()

2 changes: 1 addition & 1 deletion cmake/modules/FindSFML.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ endif()
set(FIND_SFML_PATHS
${SFML_ROOT}
$ENV{SFML_ROOT}
~/Library/Frameworks
E:\\SFML-2.4.2
/Library/Frameworks
/usr/local
/usr
Expand Down
3 changes: 2 additions & 1 deletion include/mapgen/MapGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

#include <SFML/Graphics.hpp>
#include <VoronoiDiagramGenerator.h>
#include <libnoise/noise.h>
#include <noise.h>
#include "noise/noiseutils.h"
#include <memory>
#include <functional>

//TODO: fix it and use header
Expand Down
2 changes: 1 addition & 1 deletion include/noise/noiseutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <string.h>
#include <string>

#include <libnoise/noise.h>
#include <noise.h>

using namespace noise;

Expand Down
4 changes: 2 additions & 2 deletions src/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Application {
bool hum = false;
bool simplifyRivers;
int t = 0;
float color[3] = {0.12, 0.12, 0.12};
float color[3] = {0.12f, 0.12f, 0.12f};
bool showUI = true;
bool getScreenshot = false;
float temperature;
Expand All @@ -66,7 +66,7 @@ class Application {
ImGuiIO &io = ImGui::GetIO();
io.Fonts->AddFontFromFileTTF("./font.ttf", 15.0f);

window = new sf::RenderWindow(sf::VideoMode::getDesktopMode(), "",
window = new sf::RenderWindow(sf::VideoMode(1026,768), "",
sf::Style::Default, settings);
window->setVerticalSyncEnabled(true);
ImGui::SFML::Init(*window);
Expand Down
4 changes: 2 additions & 2 deletions src/noiseutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

#include <fstream>

#include <libnoise/interp.h>
#include <libnoise/mathconsts.h>
#include <interp.h>
#include <mathconsts.h>

#include "noise/noiseutils.h"

Expand Down

0 comments on commit 8954ac7

Please sign in to comment.