fix(cmake): fix install (#6787)

This commit is contained in:
Gabor Kiss-Vamosi 2024-09-11 14:13:09 +02:00 committed by GitHub
parent d4715a9c63
commit 559618d9d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,8 @@ if("${INC_INSTALL_DIR}" STREQUAL "")
set(INC_INSTALL_DIR "include/lvgl")
endif()
set(CMAKE_INSTALL_PREFIX .)
#Install headers
install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src"
@ -131,8 +133,8 @@ if(NOT LV_CONF_BUILD_DISABLE_DEMOS)
endif()
configure_file("${LVGL_ROOT_DIR}/lvgl.pc.in" lvgl.pc @ONLY)
configure_file("${LVGL_ROOT_DIR}/lv_version.h.in" lv_version.h @ONLY)
configure_file("${LVGL_ROOT_DIR}/lvgl.pc.in" ${CMAKE_BINARY_DIR}/lvgl.pc @ONLY)
configure_file("${LVGL_ROOT_DIR}/lv_version.h.in" ${CMAKE_BINARY_DIR}/lv_version.h @ONLY)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/lvgl.pc"