From 77415fbca81de03dad3f638987b586d673e62be2 Mon Sep 17 00:00:00 2001 From: czjaso Date: Mon, 26 Jan 2026 21:01:35 -0800 Subject: [PATCH] Add CMakeLists.txt --- CMakeLists.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..d8db2b5 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 3.15) + +project(coreSNTP LANGUAGES C) + +# ------------------------------------------------------------------------------ +# Includes +# ------------------------------------------------------------------------------ + +include(${CMAKE_CURRENT_LIST_DIR}/coreSntpFilePaths.cmake) + +# ------------------------------------------------------------------------------ +# Library targets +# ------------------------------------------------------------------------------ + +add_library(core_sntp INTERFACE) + +target_sources(core_sntp INTERFACE ${CORE_SNTP_SOURCES}) + +target_include_directories(core_sntp INTERFACE ${CORE_SNTP_INCLUDE_PUBLIC_DIRS}) + +message(STATUS "core_sntp library requires SNTP_DO_NOT_USE_CUSTOM_CONFIG definition or a core_sntp_config.h file.")