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
BeaconEntity.cpp
BedEntity.cpp
BlockEntity.cpp
@@ -19,9 +20,7 @@ SET (SRCS
MobSpawnerEntity.cpp
NoteEntity.cpp
SignEntity.cpp
)
SET (HDRS
BeaconEntity.h
BedEntity.h
BlockEntity.h
@@ -42,8 +41,3 @@ SET (HDRS
NoteEntity.h
SignEntity.h
)
if(NOT MSVC)
add_library(BlockEntities ${SRCS} ${HDRS})
target_link_libraries(BlockEntities fmt::fmt SQLiteCpp)
endif()