pineapple/externals/vcpkg/ports/audiofile/fix-cmakeLists.patch

14 lines
540 B
Diff
Raw Normal View History

2022-07-23 03:01:36 +02:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,3 +42,10 @@ endif ()
#===============================================================================
set (CMAKE_SUPPRESS_REGENERATION true)
+
+#install and export targets
+install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Config)
+export(TARGETS ${PROJECT_NAME} FILE ${PROJECT_NAME}Config.cmake)
+install(EXPORT ${PROJECT_NAME}Config DESTINATION share/AudioFile FILE ${PROJECT_NAME}Config.cmake)
+#install headers
+install(FILES AudioFile.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})