nuttx/boards/arm/nrf52/common/src/CMakeLists.txt

42 lines
1.3 KiB
CMake
Raw Normal View History

2023-07-25 11:29:41 +02:00
# ##############################################################################
2023-07-10 12:50:29 +02:00
# boards/arm/nrf52/common/src/CMakeLists.txt
#
2023-07-25 11:29:41 +02:00
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
2023-07-10 12:50:29 +02:00
#
2023-07-25 11:29:41 +02:00
# http://www.apache.org/licenses/LICENSE-2.0
2023-07-10 12:50:29 +02:00
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
2023-07-25 11:29:41 +02:00
# License for the specific language governing permissions and limitations under
# the License.
2023-07-10 12:50:29 +02:00
#
2023-07-25 11:29:41 +02:00
# ##############################################################################
2023-07-10 12:50:29 +02:00
if(CONFIG_ARCH_BOARD_COMMON)
2023-07-25 11:29:41 +02:00
if(CONFIG_NRF52_TIMER)
list(APPEND SRCS nrf52_timer.c)
endif()
2023-07-10 12:50:29 +02:00
2023-07-25 11:29:41 +02:00
if(CONFIG_BOARDCTL_BOOT_IMAGE)
list(APPEND SRCS nrf52_boot_image.c)
endif()
2023-07-10 12:50:29 +02:00
2023-07-25 11:29:41 +02:00
if(CONFIG_NRF52_PROGMEM)
list(APPEND SRCS nrf52_progmem.c)
endif()
2023-07-10 12:50:29 +02:00
if(CONFIG_SENSORS_LSM9DS1)
list(APPEND SRCS nrf52_lsm9ds1.c)
endif()
2023-07-25 11:29:41 +02:00
target_sources(board PRIVATE ${SRCS})
2023-07-10 12:50:29 +02:00
endif()