mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-20 07:25:06 +00:00
20 lines
436 B
CMake
20 lines
436 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
if (DEFINED ENV{ESP_IDF_VERSION})
|
|
idf_component_register(
|
|
SRC_DIRS "Source/"
|
|
INCLUDE_DIRS "Include/"
|
|
)
|
|
|
|
else()
|
|
file(GLOB SOURCES "Source/*.c*")
|
|
file(GLOB HEADERS "Include/*.h*")
|
|
|
|
add_library(minmea STATIC)
|
|
|
|
target_sources(minmea PRIVATE ${SOURCES})
|
|
include_directories(minmea "Include/")
|
|
target_include_directories(minmea PUBLIC "Include/")
|
|
|
|
endif()
|