Skip to content

Commit 8954ac7

Browse files
committed
win owerrides
1 parent 532744b commit 8954ac7

7 files changed

Lines changed: 18 additions & 22 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ add_executable(${EXECUTABLE_NAME}
4646
${BACKWARD_ENABLE}
4747
)
4848

49-
add_backward(mapgen)
49+
#add_backward(mapgen)
5050

5151
set(THREADS_PREFER_PTHREAD_FLAG ON)
5252
find_package(Threads REQUIRED)

backward-cpp/cmake_install.cmake

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Install script for directory: /home/alexeynabrodov/projects/mapgen/backward-cpp
1+
# Install script for directory: C:/Users/averr_000/Documents/GitHub/mapgen/backward-cpp
22

33
# Set the install prefix
44
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
5-
set(CMAKE_INSTALL_PREFIX "/usr/local")
5+
set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/mapgen")
66
endif()
77
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
88

@@ -12,7 +12,7 @@ if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
1212
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
1313
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
1414
else()
15-
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
15+
set(CMAKE_INSTALL_CONFIG_NAME "Release")
1616
endif()
1717
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
1818
endif()
@@ -27,32 +27,27 @@ if(NOT CMAKE_INSTALL_COMPONENT)
2727
endif()
2828
endif()
2929

30-
# Install shared libraries without execute permission?
31-
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
32-
set(CMAKE_INSTALL_SO_NO_EXE "1")
33-
endif()
34-
35-
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
30+
if("${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
3631
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
37-
"/usr/local/include/backward.hpp")
32+
"C:/Program Files (x86)/mapgen/include/backward.hpp")
3833
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
3934
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
4035
endif()
4136
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
4237
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
4338
endif()
44-
file(INSTALL DESTINATION "/usr/local/include" TYPE FILE FILES "/home/alexeynabrodov/projects/mapgen/backward-cpp/backward.hpp")
39+
file(INSTALL DESTINATION "C:/Program Files (x86)/mapgen/include" TYPE FILE FILES "C:/Users/averr_000/Documents/GitHub/mapgen/backward-cpp/backward.hpp")
4540
endif()
4641

47-
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
42+
if("${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
4843
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
49-
"/usr/local/lib/backward/BackwardConfig.cmake")
44+
"C:/Program Files (x86)/mapgen/lib/backward/BackwardConfig.cmake")
5045
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
5146
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
5247
endif()
5348
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
5449
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
5550
endif()
56-
file(INSTALL DESTINATION "/usr/local/lib/backward" TYPE FILE FILES "/home/alexeynabrodov/projects/mapgen/backward-cpp/BackwardConfig.cmake")
51+
file(INSTALL DESTINATION "C:/Program Files (x86)/mapgen/lib/backward" TYPE FILE FILES "C:/Users/averr_000/Documents/GitHub/mapgen/backward-cpp/BackwardConfig.cmake")
5752
endif()
5853

cmake/modules/FindSFML.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ endif()
6464
set(FIND_SFML_PATHS
6565
${SFML_ROOT}
6666
$ENV{SFML_ROOT}
67-
~/Library/Frameworks
67+
E:\\SFML-2.4.2
6868
/Library/Frameworks
6969
/usr/local
7070
/usr

include/mapgen/MapGenerator.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
#include <SFML/Graphics.hpp>
55
#include <VoronoiDiagramGenerator.h>
6-
#include <libnoise/noise.h>
6+
#include <noise.h>
77
#include "noise/noiseutils.h"
8+
#include <memory>
89
#include <functional>
910

1011
//TODO: fix it and use header

include/noise/noiseutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <string.h>
2828
#include <string>
2929

30-
#include <libnoise/noise.h>
30+
#include <noise.h>
3131

3232
using namespace noise;
3333

src/application.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Application {
4949
bool hum = false;
5050
bool simplifyRivers;
5151
int t = 0;
52-
float color[3] = {0.12, 0.12, 0.12};
52+
float color[3] = {0.12f, 0.12f, 0.12f};
5353
bool showUI = true;
5454
bool getScreenshot = false;
5555
float temperature;
@@ -66,7 +66,7 @@ class Application {
6666
ImGuiIO &io = ImGui::GetIO();
6767
io.Fonts->AddFontFromFileTTF("./font.ttf", 15.0f);
6868

69-
window = new sf::RenderWindow(sf::VideoMode::getDesktopMode(), "",
69+
window = new sf::RenderWindow(sf::VideoMode(1026,768), "",
7070
sf::Style::Default, settings);
7171
window->setVerticalSyncEnabled(true);
7272
ImGui::SFML::Init(*window);

src/noiseutils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
#include <fstream>
2424

25-
#include <libnoise/interp.h>
26-
#include <libnoise/mathconsts.h>
25+
#include <interp.h>
26+
#include <mathconsts.h>
2727

2828
#include "noise/noiseutils.h"
2929

0 commit comments

Comments
 (0)