Browse Source

fix cmake build system missing variables in pkgconfig

tags/5.1.0
Claudio Cabral Stephen Sinclair 3 years ago
parent
commit
4a7ca4f1d4
3 changed files with 7 additions and 4 deletions
  1. +1
    -0
      .gitignore
  2. +5
    -3
      CMakeLists.txt
  3. +1
    -1
      rtaudio.pc.in

+ 1
- 0
.gitignore View File

@@ -1,5 +1,6 @@
Makefile
*.o
build
/config
/configure
/Makefile.in


+ 5
- 3
CMakeLists.txt View File

@@ -116,6 +116,7 @@ if (WIN32)
endif (WIN32)

cmake_policy(SET CMP0042 OLD)
set(PACKAGE_VERSION 5.0.0)
add_library(rtaudio SHARED ${rtaudio_SOURCES})
add_library(rtaudio_static STATIC ${rtaudio_SOURCES})

@@ -128,9 +129,10 @@ endif (BUILD_TESTING)
configure_file("rtaudio.pc.in" "rtaudio.pc" @ONLY)

install(TARGETS rtaudio
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin)
LIBRARY DESTINATION lib)

install(TARGETS rtaudio_static
ARCHIVE DESTINATION lib)

install(
FILES RtAudio.h


+ 1
- 1
rtaudio.pc.in View File

@@ -1,4 +1,4 @@
prefix=@prefix@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/rtaudio


Loading…
Cancel
Save