Add CMake install targets
authorStephen Sinclair <radarsat1@gmail.com>
Tue, 22 Aug 2017 23:27:51 +0000 (20:27 -0300)
committerStephen Sinclair <radarsat1@gmail.com>
Tue, 22 Aug 2017 23:27:54 +0000 (20:27 -0300)
Closes #86

CMakeLists.txt

index 9117e40c368fac612429f5264ecebf93ff77f601..812d4d307666e7fa9ab37ccc6de609f19d36e6d5 100644 (file)
@@ -125,3 +125,15 @@ if (BUILD_TESTING)
     add_subdirectory(tests)
 endif (BUILD_TESTING)
 
+install(TARGETS rtaudio
+      LIBRARY DESTINATION lib
+      ARCHIVE DESTINATION lib
+      RUNTIME DESTINATION bin)
+
+install(
+    FILES RtAudio.h
+    DESTINATION include)
+
+install(
+    FILES rtaudio.pc
+    DESTINATION lib/pkgconfig)