-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
55 lines (46 loc) · 1.53 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
cmake_minimum_required(VERSION 3.2)
project(foosballino)
include(CMakeListsPrivate.txt)
add_definitions(-DF_CPU=84000000L)
add_definitions(-DUSBCON)
add_definitions(-DUSB_MANUFACTURER="PlatformIO")
add_definitions(-Dprintf=iprintf)
add_definitions(-D__SAM3X8E__)
add_definitions(-DARDUINO_SAM_DUE)
add_definitions(-DARDUINO_ARCH_SAM)
add_definitions(-DUSB_VID=0x2341)
add_definitions(-DUSB_PID=0x003e)
add_definitions(-DUSB_PRODUCT="Arduino Due")
add_definitions(-DARDUINO=10607)
add_definitions(-DPLATFORMIO=020806)
add_custom_target(
PLATFORMIO_BUILD ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(
PLATFORMIO_UPLOAD ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target upload
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(
PLATFORMIO_CLEAN ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target clean
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(
PLATFORMIO_PROGRAM ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target program
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(
PLATFORMIO_UPLOADFS ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run --target uploadfs
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(
PLATFORMIO_UPDATE_ALL ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion update
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_executable(foosballino src/foosballino.cpp)