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

glob to detect imgui headers

parent c00c8488
No related branches found
No related tags found
No related merge requests found
...@@ -8,10 +8,11 @@ set( IMGUI_SOURCES ...@@ -8,10 +8,11 @@ set( IMGUI_SOURCES
src/imgui_tables.cpp src/imgui_tables.cpp
src/imgui_widgets.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_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 target_include_directories( imgui
PUBLIC PUBLIC
...@@ -23,6 +24,6 @@ install( ...@@ -23,6 +24,6 @@ install(
TARGETS imgui TARGETS imgui
EXPORT fgglTargets EXPORT fgglTargets
PUBLIC_HEADER PUBLIC_HEADER
DESTINATION DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}/fggl/imgui ${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