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/Items/CMakeLists.txt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/Items/CMakeLists.txt') diff --git a/src/Items/CMakeLists.txt b/src/Items/CMakeLists.txt index 9deec08c7..e5f65fb3b 100644 --- a/src/Items/CMakeLists.txt +++ b/src/Items/CMakeLists.txt @@ -1,9 +1,8 @@ +target_sources( + ${CMAKE_PROJECT_NAME} PRIVATE -SET (SRCS ItemHandler.cpp -) -SET (HDRS ItemArmor.h ItemAxe.h ItemBed.h @@ -62,8 +61,3 @@ SET (HDRS ItemSword.h ItemThrowable.h ) - -if(NOT MSVC) - add_library(Items ${SRCS} ${HDRS}) - target_link_libraries(Items fmt::fmt SQLiteCpp) -endif() -- cgit v1.2.3