refactor(split): cmake split clean up.
* Cleaner cmake setup for split build.
This commit is contained in:
parent
2b9a0ce2a5
commit
4f503246a3
4 changed files with 20 additions and 11 deletions
6
app/src/split/CMakeLists.txt
Normal file
6
app/src/split/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Copyright (c) 2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if (CONFIG_ZMK_SPLIT_BLE)
|
||||
add_subdirectory(bluetooth)
|
||||
endif()
|
||||
11
app/src/split/bluetooth/CMakeLists.txt
Normal file
11
app/src/split/bluetooth/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Copyright (c) 2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if (NOT CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
|
||||
target_sources(app PRIVATE split_listener.c)
|
||||
target_sources(app PRIVATE service.c)
|
||||
target_sources(app PRIVATE peripheral.c)
|
||||
endif()
|
||||
if (CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
|
||||
target_sources(app PRIVATE central.c)
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue