lottie: add pc file for lottie player 40/185040/1
authorsubhransu mohanty <sub.mohanty@samsung.com>
Wed, 25 Jul 2018 10:23:57 +0000 (19:23 +0900)
committersubhransu mohanty <sub.mohanty@samsung.com>
Wed, 25 Jul 2018 10:24:27 +0000 (19:24 +0900)
Change-Id: Ic44b84b756b0ae7939a016cddd1e51eec7d3a3bc

CMakeLists.txt
lottie-player.pc.in [new file with mode: 0644]

index 13ebfa6..a42fbc2 100644 (file)
@@ -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 (file)
index 0000000..52c5b4a
--- /dev/null
@@ -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}