2020-04-21 16:20:34 -04:00
|
|
|
# Find Zephyr. This also loads Zephyr's build system.
|
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2020-04-25 22:41:20 -04:00
|
|
|
|
2020-05-01 14:58:00 -04:00
|
|
|
list(APPEND BOARD_ROOT ${CMAKE_SOURCE_DIR})
|
2020-05-05 16:09:05 -04:00
|
|
|
list(APPEND DTS_ROOT ${CMAKE_SOURCE_DIR})
|
2020-04-21 16:20:34 -04:00
|
|
|
|
2020-05-16 17:30:30 -04:00
|
|
|
include(cmake/keymap.cmake)
|
|
|
|
|
|
2020-04-25 22:41:20 -04:00
|
|
|
find_package(Zephyr)
|
2020-04-21 16:20:34 -04:00
|
|
|
project(zmk)
|
|
|
|
|
|
|
|
|
|
# Add your source file to the "app" target. This must come after
|
|
|
|
|
# find_package(Zephyr) which defines the target.
|
2020-05-10 17:13:24 -04:00
|
|
|
target_include_directories(app PRIVATE include)
|
2020-05-01 19:14:18 -04:00
|
|
|
target_sources(app PRIVATE src/kscan.c)
|
2020-05-03 15:49:33 -04:00
|
|
|
target_sources(app PRIVATE src/keymap.c)
|
2020-05-15 09:41:06 -04:00
|
|
|
target_sources(app PRIVATE src/hid.c)
|
|
|
|
|
target_sources(app PRIVATE src/ble.c)
|
2020-05-05 16:09:05 -04:00
|
|
|
target_sources(app PRIVATE src/usb_hid.c)
|
2020-05-15 09:41:06 -04:00
|
|
|
target_sources(app PRIVATE src/hog.c)
|
2020-05-12 14:15:33 -04:00
|
|
|
target_sources(app PRIVATE src/endpoints.c)
|
2020-04-21 16:20:34 -04:00
|
|
|
target_sources(app PRIVATE src/main.c)
|
2020-05-10 17:13:24 -04:00
|
|
|
target_sources(app PRIVATE src/handlers.c)
|
2020-04-21 16:20:34 -04:00
|
|
|
|