-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
44 lines (38 loc) · 1.11 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
# Copyright Eleven Engineering 2015
# Author: Thia Wyrod <[email protected]>
# License: GPLv3
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type...")
set(SXC_CROSS_COMPILE ON)
set(PROJECT_NAME "minimal")
cmake_minimum_required(VERSION 3.3)
project(${PROJECT_NAME} NONE)
set (SXC_INLINE_THRESHOLD "15" CACHE STRING
"Inline threshold for compiling firmware")
set (SXC_UNROLL_THRESHOLD "20" CACHE STRING
"Unroll threshold for compiling firmware")
find_package(SXC REQUIRED)
include_directories(${SXC_INCLUDE_DIRS})
include(SXCMacros)
find_package(libspine REQUIRED)
include_directories(${libspine_INCLUDE_DIRS})
add_to_py_exec_path(libspine_PY_DIRS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__DISABLE_SOFTWARE_DIVIDE__")
# List of additional source files
# set(SOURCE_FILES
# SDCard.cpp
# FileSystem.cpp
# )
build_executable(
${PROJECT_NAME}
${PROJECT_SOURCE_DIR}
${PROJECT_BINARY_DIR}
# ${SOURCE_FILES}
empty_var
PY_FILES
)
sxc_firmware_obj_to_hex(
${PROJECT_NAME} ${PROJECT_SOURCE_DIR}/main.gen empty_var empty_var hex_target
)
add_custom_target(${PROJECT_NAME}-hex-final ALL
DEPENDS ${hex_target}
)