mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 13:36:27 +08:00
feat(build): add pkgconfig file (#4744)
Co-authored-by: Adam x Nilsson <adamni@axis.com>
This commit is contained in:
@@ -71,6 +71,12 @@ install(
|
|||||||
FILES_MATCHING
|
FILES_MATCHING
|
||||||
PATTERN "*.h")
|
PATTERN "*.h")
|
||||||
|
|
||||||
|
configure_file("${LVGL_ROOT_DIR}/lvgl.pc.in" lvgl.pc @ONLY)
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES "${CMAKE_BINARY_DIR}/lvgl.pc"
|
||||||
|
DESTINATION "${LIB_INSTALL_DIR}/pkgconfig/")
|
||||||
|
|
||||||
set_target_properties(
|
set_target_properties(
|
||||||
lvgl
|
lvgl
|
||||||
PROPERTIES OUTPUT_NAME lvgl
|
PROPERTIES OUTPUT_NAME lvgl
|
||||||
|
|||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
prefix="@CMAKE_INSTALL_PREFIX@"
|
||||||
|
includedir="${prefix}/@INC_INSTALL_DIR@"
|
||||||
|
libdir=${prefix}/lib
|
||||||
|
|
||||||
|
Name: lvgl
|
||||||
|
Description: Light and Versatile Graphics Library
|
||||||
|
URL: https://lvgl.io/
|
||||||
|
Version: 9.0.0
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Libs: -L${libdir} -llvgl
|
||||||
Reference in New Issue
Block a user