Upgrade to C++17 [CMake] (#4717)

* Make our CMake slightly less insane
This commit is contained in:
Tiger Wang
2020-05-16 20:59:10 +01:00
committed by GitHub
parent 21ef9e3819
commit 9e8598fb1c
55 changed files with 457 additions and 762 deletions
+2 -8
View File
@@ -1,5 +1,6 @@
target_sources(
${CMAKE_PROJECT_NAME} PRIVATE
SET (SRCS
BioGen.cpp
Caves.cpp
ChunkDesc.cpp
@@ -29,9 +30,7 @@ SET (SRCS
VerticalLimit.cpp
VerticalStrategy.cpp
VillageGen.cpp
)
SET (HDRS
BioGen.h
Caves.h
ChunkDesc.h
@@ -66,8 +65,3 @@ SET (HDRS
VerticalStrategy.h
VillageGen.h
)
if(NOT MSVC)
add_library(Generating ${SRCS} ${HDRS})
target_link_libraries(Generating fmt::fmt OSSupport Blocks Bindings)
endif()
+2
View File
@@ -15,6 +15,8 @@
#pragma once
#include "ComposableGenerator.h"
#include "../Noise/Noise.h"
#include "../ProbabDistrib.h"