Browse Source

cmake: Install host-plugin/native-plugin/standalone pkgconfig files

pull/1805/merge
Alexandros Theodotou Filipe Coelho <falktx@falktx.com> 11 months ago
parent
commit
68bbca2711
4 changed files with 34 additions and 0 deletions
  1. +6
    -0
      cmake/CMakeLists.txt
  2. +10
    -0
      cmake/carla-host-plugin.pc.in
  3. +9
    -0
      cmake/carla-native-plugin.pc.in
  4. +9
    -0
      cmake/carla-standalone.pc.in

+ 6
- 0
cmake/CMakeLists.txt View File

@@ -1587,9 +1587,15 @@ install(TARGETS carla-headers-utils PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_IN

if(NOT ${CARLA_BUILD_FRAMEWORKS} AND NOT MSVC)
configure_file(carla-utils.pc.in carla-utils.pc @ONLY)
configure_file(carla-standalone.pc.in carla-standalone.pc @ONLY)
configure_file(carla-native-plugin.pc.in carla-native-plugin.pc @ONLY)
configure_file(carla-host-plugin.pc.in carla-host-plugin.pc @ONLY)

install(FILES
${CMAKE_CURRENT_BINARY_DIR}/carla-utils.pc
${CMAKE_CURRENT_BINARY_DIR}/carla-standalone.pc
${CMAKE_CURRENT_BINARY_DIR}/carla-native-plugin.pc
${CMAKE_CURRENT_BINARY_DIR}/carla-host-plugin.pc
DESTINATION
${CMAKE_INSTALL_LIBDIR}/pkgconfig
)


+ 10
- 0
cmake/carla-host-plugin.pc.in View File

@@ -0,0 +1,10 @@
prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
carla_libdir=${libdir}/carla

Name: carla-host-plugin
Version: @PROJECT_VERSION@
Description: Carla Host as Native Plugin
Libs: -Wl,-rpath,${carla_libdir} -L${carla_libdir} -lcarla_host-plugin
Cflags: -I${includedir}/carla -I${includedir}/carla/includes

+ 9
- 0
cmake/carla-native-plugin.pc.in View File

@@ -0,0 +1,9 @@
prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

Name: carla-native-plugin
Version: @PROJECT_VERSION@
Description: Carla Native Plugin
Libs: -Wl,-rpath,${libdir}/carla -L${libdir}/carla -lcarla_native-plugin
Cflags: -I${includedir}/carla -I${includedir}/carla/includes

+ 9
- 0
cmake/carla-standalone.pc.in View File

@@ -0,0 +1,9 @@
prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

Name: carla-standalone
Version: @PROJECT_VERSION@
Description: Carla Host Standalone
Libs: -Wl,-rpath,${libdir}/carla -L${libdir}/carla -lcarla_standalone2
Cflags: -I${includedir}/carla -I${includedir}/carla/includes

Loading…
Cancel
Save