more cleanup

This commit is contained in:
SpaceIm 2023-10-10 21:28:07 +02:00 committed by Nigel Stewart
parent f8023b362d
commit f064fbfcb6

View File

@ -161,7 +161,6 @@ target_compile_definitions(glew_s INTERFACE "GLEW_STATIC")
foreach(t glew glew_s) foreach(t glew glew_s)
target_include_directories(${t} PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>) target_include_directories(${t} PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
endforeach() endforeach()
set(MAYBE_EXPORT EXPORT glew-targets)
set(targets_to_install "") set(targets_to_install "")
if(BUILD_SHARED_LIBS) if(BUILD_SHARED_LIBS)
@ -171,7 +170,7 @@ else ()
endif() endif()
install ( TARGETS ${targets_to_install} install ( TARGETS ${targets_to_install}
${MAYBE_EXPORT} EXPORT glew-targets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Runtime LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Runtime
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development
@ -247,16 +246,14 @@ install (
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/GL DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/GL
COMPONENT Development) COMPONENT Development)
if(MAYBE_EXPORT) install(EXPORT glew-targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glew
install(EXPORT glew-targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glew COMPONENT Development
COMPONENT Development NAMESPACE GLEW::)
NAMESPACE GLEW::) install(FILES
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/glew-config.cmake
${CMAKE_CURRENT_SOURCE_DIR}/glew-config.cmake ${CMAKE_CURRENT_SOURCE_DIR}/CopyImportedTargetProperties.cmake
${CMAKE_CURRENT_SOURCE_DIR}/CopyImportedTargetProperties.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glew
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glew COMPONENT Development)
COMPONENT Development)
endif()
if(NOT TARGET uninstall) if(NOT TARGET uninstall)
configure_file( configure_file(