2021-09-14 11:20:15 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-02-09 07:37:29 +01:00
|
|
|
@@ -42,3 +42,10 @@ endif ()
|
2021-09-14 11:20:15 +08:00
|
|
|
|
|
|
|
#===============================================================================
|
2022-02-09 07:37:29 +01:00
|
|
|
set (CMAKE_SUPPRESS_REGENERATION true)
|
2021-09-14 11:20:15 +08:00
|
|
|
+
|
|
|
|
+#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})
|