mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-26 02:37:01 +08:00
fix(cmake): fix install (#6787)
This commit is contained in:
committed by
GitHub
parent
d4715a9c63
commit
559618d9d2
@@ -99,6 +99,8 @@ if("${INC_INSTALL_DIR}" STREQUAL "")
|
|||||||
set(INC_INSTALL_DIR "include/lvgl")
|
set(INC_INSTALL_DIR "include/lvgl")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(CMAKE_INSTALL_PREFIX .)
|
||||||
|
|
||||||
#Install headers
|
#Install headers
|
||||||
install(
|
install(
|
||||||
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src"
|
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src"
|
||||||
@@ -131,8 +133,8 @@ if(NOT LV_CONF_BUILD_DISABLE_DEMOS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
configure_file("${LVGL_ROOT_DIR}/lvgl.pc.in" lvgl.pc @ONLY)
|
configure_file("${LVGL_ROOT_DIR}/lvgl.pc.in" ${CMAKE_BINARY_DIR}/lvgl.pc @ONLY)
|
||||||
configure_file("${LVGL_ROOT_DIR}/lv_version.h.in" lv_version.h @ONLY)
|
configure_file("${LVGL_ROOT_DIR}/lv_version.h.in" ${CMAKE_BINARY_DIR}/lv_version.h @ONLY)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
FILES "${CMAKE_CURRENT_BINARY_DIR}/lvgl.pc"
|
FILES "${CMAKE_CURRENT_BINARY_DIR}/lvgl.pc"
|
||||||
|
|||||||
Reference in New Issue
Block a user