Skip to content
Merged
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
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ install(TARGETS ImGui-SFML
install(EXPORT ImGui-SFML
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ImGui-SFML
NAMESPACE ImGui-SFML::
FILE ImGui-SFMLConfig.cmake
)

install(FILES ${PROJECT_SOURCE_DIR}/cmake/ImGui-SFMLConfig.cmake
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ImGui-SFML
)

# Stop configuration if being consumed by a higher level project
Expand Down
5 changes: 5 additions & 0 deletions cmake/ImGui-SFMLConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include(CMakeFindDependencyMacro)
find_dependency(OpenGL)
find_dependency(SFML COMPONENTS Graphics)

include(${CMAKE_CURRENT_LIST_DIR}/ImGui-SFML.cmake)