Revert "formatting"

This reverts commit 212651e74f.
This commit is contained in:
Francisco Herrera 2024-07-10 22:19:01 -03:00
parent 212651e74f
commit 4c5b6b1319
1 changed files with 11 additions and 11 deletions

View File

@ -5,29 +5,29 @@ file(GLOB COMPONENT_SRCS csrc/*.c)
file(GLOB COMPONENT_HDRS csrc/*.h) file(GLOB COMPONENT_HDRS csrc/*.h)
if(COMMAND idf_component_register) if(COMMAND idf_component_register)
idf_component_register(SRCS "${COMPONENT_SRCS}" INCLUDE_DIRS csrc) idf_component_register(SRCS "${COMPONENT_SRCS}" INCLUDE_DIRS csrc)
return() return()
endif() endif()
project(u8g2) project(u8g2)
if(COMMAND register_component) if(COMMAND register_component)
set(COMPONENT_NAME ".") set(COMPONENT_NAME ".")
register_component() register_component()
else() else()
add_library(u8g2 ${COMPONENT_SRCS}) add_library(u8g2 ${COMPONENT_SRCS})
target_include_directories(u8g2 PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/csrc>" "$<INSTALL_INTERFACE:include>") target_include_directories(u8g2 PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/csrc>" "$<INSTALL_INTERFACE:include>")
endif() endif()
install(TARGETS u8g2 install(TARGETS u8g2
EXPORT u8g2-targets EXPORT u8g2-targets
ARCHIVE DESTINATION lib) ARCHIVE DESTINATION lib)
install(FILES ${COMPONENT_HDRS} install(FILES ${COMPONENT_HDRS}
DESTINATION include/u8g2) DESTINATION include/u8g2)
install(EXPORT u8g2-targets install(EXPORT u8g2-targets
DESTINATION lib/cmake/u8g2) DESTINATION lib/cmake/u8g2)
install(FILES ${u8g2_SOURCE_DIR}/pkg/u8g2-config.cmake install(FILES ${u8g2_SOURCE_DIR}/pkg/u8g2-config.cmake
DESTINATION lib/cmake/u8g2) DESTINATION lib/cmake/u8g2)