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/Mobs/CMakeLists.txt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/Mobs/CMakeLists.txt') diff --git a/src/Mobs/CMakeLists.txt b/src/Mobs/CMakeLists.txt index aada8f3a8..6508e1814 100644 --- a/src/Mobs/CMakeLists.txt +++ b/src/Mobs/CMakeLists.txt @@ -1,5 +1,6 @@ +target_sources( + ${CMAKE_PROJECT_NAME} PRIVATE -SET (SRCS AggressiveMonster.cpp Bat.cpp Blaze.cpp @@ -37,9 +38,8 @@ SET (SRCS Wolf.cpp Zombie.cpp ZombiePigman.cpp - ZombieVillager.cpp) + ZombieVillager.cpp -SET (HDRS AggressiveMonster.h Bat.h Blaze.h @@ -80,9 +80,5 @@ SET (HDRS Wolf.h Zombie.h ZombiePigman.h - ZombieVillager.h) - -if(NOT MSVC) - add_library(Mobs ${SRCS} ${HDRS}) - target_link_libraries(Mobs fmt::fmt SQLiteCpp) -endif() + ZombieVillager.h +) -- cgit v1.2.3