diff --git a/CMakeLists.txt b/CMakeLists.txt index fa61485d..44e39a33 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,29 +5,29 @@ file(GLOB COMPONENT_SRCS csrc/*.c) file(GLOB COMPONENT_HDRS csrc/*.h) if(COMMAND idf_component_register) - idf_component_register(SRCS "${COMPONENT_SRCS}" INCLUDE_DIRS csrc) - return() + idf_component_register(SRCS "${COMPONENT_SRCS}" INCLUDE_DIRS csrc) + return() endif() project(u8g2) if(COMMAND register_component) - set(COMPONENT_NAME ".") - register_component() + set(COMPONENT_NAME ".") + register_component() else() - add_library(u8g2 ${COMPONENT_SRCS}) - target_include_directories(u8g2 PUBLIC "$" "$") + add_library(u8g2 ${COMPONENT_SRCS}) + target_include_directories(u8g2 PUBLIC "$" "$") endif() install(TARGETS u8g2 - EXPORT u8g2-targets - ARCHIVE DESTINATION lib) + EXPORT u8g2-targets + ARCHIVE DESTINATION lib) install(FILES ${COMPONENT_HDRS} - DESTINATION include/u8g2) + DESTINATION include/u8g2) install(EXPORT u8g2-targets - DESTINATION lib/cmake/u8g2) + DESTINATION lib/cmake/u8g2) install(FILES ${u8g2_SOURCE_DIR}/pkg/u8g2-config.cmake - DESTINATION lib/cmake/u8g2) + DESTINATION lib/cmake/u8g2)