Skip to content

Commit

Permalink
Fix cmake files not getting installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K committed Jan 3, 2025
1 parent d28874f commit 61923e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Templates/UntitledImGuiFramework/BuildFiles/CMakeInstall.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if (UIMGUI_INSTALL_FRAMEWORK)
if (UIMGUI_INSTALL_FRAMEWORK AND NOT UIMGUI_SKIP_FRAMEWORK)
install(FILES ${PROJECT_BINARY_DIR}/UntitledImGuiFramework.pc DESTINATION lib/pkgconfig/)
install(TARGETS UntitledImGuiFramework DESTINATION "{{ framework_dir }}")
multicast(target_compile_definitions PRIVATE UIMGUI_FRAMEWORK_LIBRARY_DIR="${UIMGUI_INSTALL_PREFIX}/{{ framework_dir }}")
Expand Down Expand Up @@ -27,7 +27,7 @@
multicast(target_compile_definitions PRIVATE UIMGUI_APPLICATION_INCLUDE_DIR="${UIMGUI_INSTALL_PREFIX}/{{ application_include_dir }}")

if (UIMGUI_INSTALL_FRAMEWORK)
install(DIRECTORY "Framework/" DESTINATION "{{ framework_include_dir }}/Framework" FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")
install(DIRECTORY "Framework/" DESTINATION "{{ framework_include_dir }}/Framework" FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp" PATTERN "*.cmake")
install(FILES "export.sh" DESTINATION "{{ framework_include_dir }}" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
multicast(target_compile_definitions PRIVATE UIMGUI_FRAMEWORK_INCLUDE_DIR="${UIMGUI_INSTALL_PREFIX}/{{ framework_include_dir }}")
endif()
Expand Down

0 comments on commit 61923e8

Please sign in to comment.