-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
40 lines (32 loc) · 976 Bytes
/
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.19)
cmake_policy(VERSION 3.19)
# Initialize Mbed OS build system.
# Note: This block must be before the include of app.cmake
set(MBED_APP_JSON_PATH mbed_app.json)
include(mbed-os/tools/cmake/app.cmake)
add_subdirectory(mbed-os)
project(ranpw)
# Build libraries
add_subdirectory(C12832)
add_subdirectory(LM75B)
add_subdirectory(MMA7660)
# Build application
set(RANPW_SOURCES
lib/Hell/Hell.cpp
lib/LockY/LockY.cpp
lib/DataSaver/DataSaver.cpp
lib/Bag/Bag.cpp
lib/ConcurrentData/ConcurrentData.cpp
lib/Cronometer/Cronometer.cpp
lib/DataSaver/DataSaver.cpp
lib/Ranpw/Ranpw.cpp
lib/Kraken/Kraken.cpp
lib/LCatch/LCatch.cpp
lib/Pong/Pong.cpp
lib/Termometer/Termometer.cpp
main.cpp)
add_executable(ranpw ${RANPW_SOURCES})
target_include_directories(ranpw PRIVATE include)
target_link_libraries(ranpw LM75B C12832 MMA7660 mbed-os mbed-storage)
mbed_set_post_build(ranpw)
mbed_finalize_build()