Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There were two problems when I tried to use this. #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ endif()

add_library(glad STATIC src/glad.c)
target_include_directories(glad PUBLIC include)
find_package(glew QUIET)
pkg_check_modules(glew REQUIRED IMPORTED_TARGET GLOBAL glew)

add_library(imgui STATIC
third_party/imgui/imgui.cpp
Expand All @@ -47,7 +49,7 @@ add_library(imgui STATIC
third_party/imgui/backends/imgui_impl_opengl3.cpp
third_party/imgui/backends/imgui_impl_glfw.cpp
)
target_link_libraries(imgui PRIVATE glad glfw)
target_link_libraries(imgui PRIVATE glad glfw PkgConfig::glew)
target_include_directories(imgui PUBLIC third_party/imgui)
target_include_directories(imgui PUBLIC third_party/imgui/backends)

Expand Down Expand Up @@ -110,4 +112,4 @@ endif()

if(NOT MSVC)
install(TARGETS wextract RUNTIME)
endif()
endif()
Loading