diff --git a/lib/third_party/imgui/custom/CMakeLists.txt b/lib/third_party/imgui/custom/CMakeLists.txt index 7997fb546..8b2998af0 100644 --- a/lib/third_party/imgui/custom/CMakeLists.txt +++ b/lib/third_party/imgui/custom/CMakeLists.txt @@ -14,4 +14,12 @@ target_include_directories(imgui_custom PUBLIC ) target_link_libraries(imgui_custom PRIVATE imgui_includes) -set_property(TARGET imgui_custom PROPERTY POSITION_INDEPENDENT_CODE ON) \ No newline at end of file +set_property(TARGET imgui_custom PROPERTY POSITION_INDEPENDENT_CODE ON) + +find_package(PkgConfig REQUIRED) +find_package(OpenGL REQUIRED) +pkg_search_module(GLFW REQUIRED glfw3) + +target_include_directories(imgui_custom PUBLIC ${GLFW_INCLUDE_DIRS} ${OpenGL_INCLUDE_DIRS}) +target_link_directories(imgui_custom PUBLIC ${GLFW_LIBRARY_DIRS} ${OpenGL_LIBRARY_DIRS}) +target_link_libraries(imgui_custom PUBLIC ${GLFW_LIBRARIES} ${OPENGL_LIBRARIES}) \ No newline at end of file diff --git a/lib/third_party/imgui/imgui/CMakeLists.txt b/lib/third_party/imgui/imgui/CMakeLists.txt index d16d11e7d..e44e14483 100644 --- a/lib/third_party/imgui/imgui/CMakeLists.txt +++ b/lib/third_party/imgui/imgui/CMakeLists.txt @@ -26,11 +26,8 @@ target_compile_definitions(imgui_imgui PUBLIC IMGUI_IMPL_OPENGL_LOADER_GLAD) target_compile_options(imgui_imgui PRIVATE -Wno-unknown-warning-option) set_property(TARGET imgui_imgui PROPERTY POSITION_INDEPENDENT_CODE ON) -find_package(PkgConfig REQUIRED) find_package(Freetype REQUIRED) -find_package(OpenGL REQUIRED) -pkg_search_module(GLFW REQUIRED glfw3) -target_include_directories(imgui_imgui PUBLIC ${FREETYPE_INCLUDE_DIRS} ${GLFW_INCLUDE_DIRS} ${OpenGL_INCLUDE_DIRS}) -target_link_directories(imgui_imgui PUBLIC ${GLFW_LIBRARY_DIRS} ${OpenGL_LIBRARY_DIRS}) -target_link_libraries(imgui_imgui PUBLIC Freetype::Freetype ${FREETYPE_LIBRARIES} ${GLFW_LIBRARIES} ${OPENGL_LIBRARIES}) \ No newline at end of file +target_include_directories(imgui_imgui PUBLIC ${FREETYPE_INCLUDE_DIRS} ) +target_link_directories(imgui_imgui PUBLIC ${FREETYPE_LIBRARY_DIRS}) +target_link_libraries(imgui_imgui PUBLIC ${FREETYPE_LIBRARIES}) \ No newline at end of file