From 9e8598fb1ca359143600d6bb2e8b317126a86bcc Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sat, 16 May 2020 20:59:10 +0100 Subject: Upgrade to C++17 [CMake] (#4717) * Make our CMake slightly less insane --- src/UI/CMakeLists.txt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/UI') diff --git a/src/UI/CMakeLists.txt b/src/UI/CMakeLists.txt index 16c70f6fe..b87a7fe47 100644 --- a/src/UI/CMakeLists.txt +++ b/src/UI/CMakeLists.txt @@ -1,5 +1,6 @@ +target_sources( + ${CMAKE_PROJECT_NAME} PRIVATE -SET (SRCS SlotArea.cpp Window.cpp AnvilWindow.cpp @@ -13,9 +14,8 @@ SET (SRCS FurnaceWindow.cpp HopperWindow.cpp HorseWindow.cpp - InventoryWindow.cpp) + InventoryWindow.cpp -SET (HDRS SlotArea.h Window.h AnvilWindow.h @@ -31,9 +31,5 @@ SET (HDRS HorseWindow.h InventoryWindow.h MinecartWithChestWindow.h - WindowOwner.h) - -if(NOT MSVC) - add_library(UI ${SRCS} ${HDRS}) - target_link_libraries(UI fmt::fmt SQLiteCpp) -endif() + WindowOwner.h +) -- cgit v1.2.3