-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (22 loc) · 932 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
cmake_minimum_required (VERSION 3.2)
project (test-project)
set(CMAKE_C_FLAGS "-std=c11 -mthumb -ffunction-sections -g -fno-diagnostics-show-caret -D_REENT_SMALL=1 -Wall -Wextra -Werror -Wpointer-arith -Wno-unused-parameter -Wno-missing-field-initializers -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-packed-bitfield-compat -mcpu=cortex-m3 -Os -Werror=return-type")
file(GLOB_RECURSE src "src/*")
file(GLOB_RECURSE include "include/*")
file(GLOB_RECURSE build "build/basalt/*.c")
set(SOURCES
${src}
${include}
${build}
)
set(INCLUDES
~/Library/Application\ Support/Pebble\ SDK/SDKs/current/sdk-core/pebble/basalt/include
./node_modules/@smallstoneapps/linked-list/dist/include
./build/include
./build
./include
)
add_definitions(-DPEBBLE)
add_definitions(-DPBL_COLOR)
include_directories(${INCLUDES})
add_executable(app ${SOURCES})