Skip to content

Commit

Permalink
fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Jun 7, 2024
1 parent d79ee9d commit 7f22da7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions env_support/cmake/custom.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ endif()

# Library and headers can be installed to system using make install
file(GLOB LVGL_PUBLIC_HEADERS
"${CMAKE_SOURCE_DIR}/lvgl.h"
"${CMAKE_SOURCE_DIR}/lv_version.h")
"${LVGL_ROOT_DIR}/lvgl.h"
"${LVGL_ROOT_DIR}/lv_version.h")

if(NOT LV_CONF_SKIP)
file(GLOB LVGL_PUBLIC_HEADERS
"${CMAKE_SOURCE_DIR}/lv_conf.h")
list(APPEND LVGL_PUBLIC_HEADERS
"${CMAKE_SOURCE_DIR}/lv_conf.h")
endif()

if("${LIB_INSTALL_DIR}" STREQUAL "")
Expand All @@ -113,6 +113,12 @@ install(
FILES_MATCHING
PATTERN "*.h")

# Install headers from the LVGL_PUBLIC_HEADERS variable
install(
FILES ${LVGL_PUBLIC_HEADERS}
DESTINATION "${CMAKE_INSTALL_PREFIX}/${INC_INSTALL_DIR}/"
)

# install example headers
if(NOT LV_CONF_BUILD_DISABLE_EXAMPLES)
install(
Expand Down

0 comments on commit 7f22da7

Please sign in to comment.