forked from PonomarevDA/libparams
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
24 lines (20 loc) · 765 Bytes
/
CMakeLists.txt
File metadata and controls
24 lines (20 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2023 Dmitry Ponomarev <ponomarevda96@gmail.com>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
if(NOT LIBPARAMS_PLATFORM)
message(SEND_ERROR "LIBPARAMS_PLATFORM is not specified")
endif()
FILE(GLOB libparamsPlatformSpecificSrc
${CMAKE_CURRENT_LIST_DIR}/platform_specific/${LIBPARAMS_PLATFORM}/flash_driver.*
)
set(libparamsSrc
${CMAKE_CURRENT_LIST_DIR}/libparams/rom.c
${CMAKE_CURRENT_LIST_DIR}/libparams/storage.c
${libparamsPlatformSpecificSrc}
)
set(libparamsHeaders
${CMAKE_CURRENT_LIST_DIR}/libparams/
${CMAKE_CURRENT_LIST_DIR}/platform_specific/${LIBPARAMS_PLATFORM}/
)