From 970dd837359bb7c5fe47ef17ffef65912c6b86e4 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Wed, 25 Jul 2018 19:23:57 +0900 Subject: [PATCH] lottie: add pc file for lottie player Change-Id: Ic44b84b756b0ae7939a016cddd1e51eec7d3a3bc --- CMakeLists.txt | 5 ++++- lottie-player.pc.in | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 lottie-player.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 13ebfa6..a42fbc2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,9 @@ target_link_libraries(lottie-player add_subdirectory(inc) add_subdirectory(src) +CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION lib/pkgconfig) + #install header install(FILES inc/lottieplayer.h DESTINATION include) @@ -48,4 +51,4 @@ install( EXPORT lottie-player-targets #Register package in user's package registry -export(PACKAGE lottie-player) \ No newline at end of file +export(PACKAGE lottie-player) diff --git a/lottie-player.pc.in b/lottie-player.pc.in new file mode 100644 index 0000000..52c5b4a --- /dev/null +++ b/lottie-player.pc.in @@ -0,0 +1,11 @@ +prefix=@PREFIX@ +exec_prefix=@EXEC_DIR@ +libdir=@LIBDIR@ +includedir=@INCDIR@ + +Name: lottie-player +Description: A lottie-player library +Version: @VERSION@ +Requires: +Libs: -L${libdir} -llottie-player +Cflags: -I${includedir} -- 2.7.4