vcpkg/ports/audiofile/fix-cmakeLists.patch
Thomas1664 22dd6ab207
[Audiofile] Update to 1.1.0 (#22943)
* Update to version 1.1.0

* Use patch

* Update version
2022-02-08 22:37:29 -08:00

14 lines
540 B
Diff

--- 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})