-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (32 loc) · 1.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.20)
project(ESP8266WiFi VERSION 1.0 LANGUAGES C)
set(CMAKE_C_STANDARD 99)
include(cmake/CPM.cmake)
CPMAddPackage(
NAME DWTDelay
GITHUB_REPOSITORY ximtech/DWTDelay
GIT_TAG origin/main)
CPMAddPackage(
NAME Ethernet
GITHUB_REPOSITORY ximtech/Ethernet
GIT_TAG origin/main)
CPMAddPackage(
NAME Regex
GITHUB_REPOSITORY ximtech/Regex
GIT_TAG origin/main)
CPMAddPackage(
NAME STM32Core
GITHUB_REPOSITORY ximtech/STM32Core
GIT_TAG origin/main)
set(ESP8266_WIFI_DIRECTORY
${DWT_DELAY_DIRECTORY}
${USART_DMA_DIRECTORY}
${ESP8266Wifi_SOURCE_DIR}
${ESP8266Wifi_SOURCE_DIR}/include
CACHE STRING "ESP8266 wifi directories include to the main project" FORCE)
set(ESP8266_WIFI_SOURCES
${DWT_DELAY_SOURCES}
${USART_DMA_SOURCES}
${ESP8266Wifi_SOURCE_DIR}/include/ESP8266WiFi.h
${ESP8266Wifi_SOURCE_DIR}/ESP8266WiFi.c
CACHE STRING "ESP8266 wifi source files include to the main project" FORCE)