diff --git a/quark/CMakeLists.txt b/quark/CMakeLists.txt index a8cd57a..2cbb93d 100644 --- a/quark/CMakeLists.txt +++ b/quark/CMakeLists.txt @@ -3,7 +3,7 @@ project(quark CXX) FetchContent_MakeAvailable(spdlog glfw3) add_subdirectory(vendor) -add_library(quark SHARED) +add_library(quark STATIC) target_sources(quark PRIVATE diff --git a/quark/src/quark/Application.cpp b/quark/src/quark/Application.cpp index dac97f1..4db65b8 100644 --- a/quark/src/quark/Application.cpp +++ b/quark/src/quark/Application.cpp @@ -2,6 +2,7 @@ #include "quark/Core.hpp" #include "quark/Input.hpp" #include "quark/imgui/ImGuiLayer.hpp" +#include #include namespace qk { @@ -11,7 +12,7 @@ namespace qk { instance = this; window = Window::Create(); - window->SetEventCallback(std::bind(&Application::OnEvent, this, std::placeholders::_1)); + window->SetEventCallback(BIND_EVENT_CB(Application::OnEvent)); uiLayer = std::make_unique(); }