u8g2-copy/CMakeLists.txt

21 lines
495 B
CMake
Raw Normal View History

2023-09-30 22:17:31 +08:00
cmake_minimum_required(VERSION 3.5)
project(u8g2)
set(COMPONENT_ADD_INCLUDEDIRS csrc)
2023-10-01 01:11:22 +08:00
file(GLOB COMPONENT_SRCS csrc/*.c)
2023-09-30 22:30:01 +08:00
file(GLOB COMPONENT_HDRS csrc/*.h)
if(COMMAND register_component)
set(COMPONENT_NAME ".")
register_component()
else()
add_library(u8g2 ${COMPONENT_SRCS})
target_include_directories(u8g2 PUBLIC ${CMAKE_CURRENT_LIST_DIR}/csrc )
endif()
2023-09-30 22:30:01 +08:00
install(TARGETS u8g2
ARCHIVE DESTINATION lib)
install(FILES ${COMPONENT_HDRS}
DESTINATION include/u8g2)