-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (28 loc) · 862 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
36 lines (28 loc) · 862 Bytes
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
cmake_minimum_required(VERSION 3.27)
project(ArduinoTools
VERSION 2024.07.03.0
DESCRIPTION "ArduinoTools"
LANGUAGES CXX)
find_package(Qt6 COMPONENTS Core REQUIRED)
set(CMAKE_CXX_STANDARD 23)
set(CXX_STANDARD_REQUIRED ON)
#
include(FetchContent)
set(FETCHCONTENT_QUIET FALSE)
if(LINUX)
FetchContent_Declare(arduino_cli
URL https://github.com/arduino/arduino-cli/releases/download/v1.0.2/arduino-cli_1.0.2_Linux_64bit.tar.gz)
endif()
if(WIN32)
FetchContent_Declare(arduino_cli
URL https://github.com/arduino/arduino-cli/releases/download/v1.0.2/arduino-cli_1.0.2_Windows_64bit.zip)
endif()
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG v1.14.0)
FetchContent_MakeAvailable(arduino_cli googletest)
#
#
add_subdirectory(src)
add_subdirectory(tst)