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)