14 lines
540 B
Diff
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})
|