prebuild spdlog, and fix some link warnings.

This commit is contained in:
2025-01-21 22:03:15 -07:00
parent 7d51c5a2e7
commit 530734d159
3 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,7 @@ set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)
add_subdirectory(deps/glfw)
add_subdirectory(deps/glad)
add_subdirectory(deps/spdlog)
add_executable(2dGameProject ${2dGameProject_SRC})
target_include_directories(2dGameProject PUBLIC
"${PROJECT_SOURCE_DIR}/deps/glfw/include"
@ -16,4 +17,4 @@ target_include_directories(2dGameProject PUBLIC
"${PROJECT_SOURCE_DIR}/deps/spdlog/include"
)
target_link_libraries(2dGameProject PUBLIC glfw glad ${OPENGL_LIBRARIES})
target_link_libraries(2dGameProject PUBLIC glfw glad spdlog::spdlog ${OPENGL_LIBRARIES})