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

test rpm and flatpak builds

parent 7357e809
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ install(FILES
# generate the export targets for the build tree
install(TARGETS ${PROJECT_NAME}
EXPORT fgglTargets
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
......
......@@ -24,8 +24,7 @@ modules:
- modules/glm-0.9.9.8.json
- modules/fmt.yml
- modules/spdlog.json
# - shared-modules/glew/glew.json
# - modules/googletest.yml
- modules/googletest.yml
- shared-modules/glu/glu-9.json
- modules/yaml-cpp.yml
- modules/assimp.yml
......
......@@ -67,6 +67,8 @@ fggl dynamic libraries and header files.
%files devel
%{_includedir}/fggl/*
%{_libdir}/cmake/%{name}
# this feels like a packaging bug...
%{_libdir}/libimgui.a
%files demos
%{_bindir}/demo
......
......@@ -13,17 +13,15 @@ file(GLOB_RECURSE IMGUI_HEADERS "include/*.h")
add_library(imgui STATIC ${IMGUI_SOURCES} ${IMGUI_HEADERS})
set_property(TARGET imgui PROPERTY POSITION_INDEPENDENT_CODE ON)
set_target_properties(imgui PROPERTIES PUBLIC_HEADER "${IMGUI_HEADERS}" )
target_include_directories( imgui
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
$<INSTALL_INTERFACE:include/fggl/imgui>
)
install(
TARGETS imgui
include(GNUInstallDirs)
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