prebuild spdlog, and fix some link warnings.
This commit is contained in:
@ -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})
|
Reference in New Issue
Block a user