From 68bbca2711626835157ef3a55938566f2ee3fe87 Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Wed, 13 Dec 2023 20:17:51 +0900 Subject: [PATCH] cmake: Install host-plugin/native-plugin/standalone pkgconfig files --- cmake/CMakeLists.txt | 6 ++++++ cmake/carla-host-plugin.pc.in | 10 ++++++++++ cmake/carla-native-plugin.pc.in | 9 +++++++++ cmake/carla-standalone.pc.in | 9 +++++++++ 4 files changed, 34 insertions(+) create mode 100644 cmake/carla-host-plugin.pc.in create mode 100644 cmake/carla-native-plugin.pc.in create mode 100644 cmake/carla-standalone.pc.in diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 5fc9c6d60..c0a817e07 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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 ) diff --git a/cmake/carla-host-plugin.pc.in b/cmake/carla-host-plugin.pc.in new file mode 100644 index 000000000..5850be717 --- /dev/null +++ b/cmake/carla-host-plugin.pc.in @@ -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 diff --git a/cmake/carla-native-plugin.pc.in b/cmake/carla-native-plugin.pc.in new file mode 100644 index 000000000..2e677ae9e --- /dev/null +++ b/cmake/carla-native-plugin.pc.in @@ -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 diff --git a/cmake/carla-standalone.pc.in b/cmake/carla-standalone.pc.in new file mode 100644 index 000000000..acc821c00 --- /dev/null +++ b/cmake/carla-standalone.pc.in @@ -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