From f58173649b5ca0d9176d4546190b05838fe3a005 Mon Sep 17 00:00:00 2001 From: williamistGitHub Date: Fri, 18 Oct 2024 17:05:31 -0400 Subject: [PATCH] fix cmake building --- ScuffedMinecraft/CMakeLists.txt | 4 ++++ ScuffedMinecraft/src/CMakeLists.txt | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ScuffedMinecraft/CMakeLists.txt b/ScuffedMinecraft/CMakeLists.txt index 716b07e..5984286 100644 --- a/ScuffedMinecraft/CMakeLists.txt +++ b/ScuffedMinecraft/CMakeLists.txt @@ -18,5 +18,9 @@ add_custom_target(copy_assets ALL set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +# global dependency directories +include_directories(../Dependencies/include/) +link_directories(../Dependencies/lib/) + add_subdirectory(vendor/imgui) add_subdirectory(src) diff --git a/ScuffedMinecraft/src/CMakeLists.txt b/ScuffedMinecraft/src/CMakeLists.txt index 605e595..8a9aaff 100644 --- a/ScuffedMinecraft/src/CMakeLists.txt +++ b/ScuffedMinecraft/src/CMakeLists.txt @@ -4,6 +4,4 @@ add_executable(scuffed_mc Camera.cpp Planet.cpp WorldGen.cpp ../vendor/glad.c ) -include_directories(../../Dependencies/include/) - -target_link_libraries(scuffed_mc imgui glfw) +target_link_libraries(scuffed_mc imgui glfw3)