Skip to content
Snippets Groups Projects
Commit 7357e809 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

glob to detect imgui headers

parent 736a2a03
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,11 @@ set( IMGUI_SOURCES
src/imgui_tables.cpp
src/imgui_widgets.cpp
)
file(GLOB_RECURSE IMGUI_HEADERS "include/*.h")
add_library(imgui STATIC ${IMGUI_SOURCES} )
add_library(imgui STATIC ${IMGUI_SOURCES} ${IMGUI_HEADERS})
set_property(TARGET imgui PROPERTY POSITION_INDEPENDENT_CODE ON)
set_target_properties(imgui PROPERTIES PUBLIC_HEADER include/* )
set_target_properties(imgui PROPERTIES PUBLIC_HEADER "${IMGUI_HEADERS}" )
target_include_directories( imgui
PUBLIC
......@@ -23,6 +24,6 @@ install(
TARGETS imgui
EXPORT fgglTargets
PUBLIC_HEADER
DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}/fggl/imgui
DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}/fggl/imgui
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment