2023-02-07 07:17:28 +01:00
|
|
|
# ##############################################################################
|
|
|
|
# apps/CMakeLists.txt
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
# License for the specific language governing permissions and limitations under
|
|
|
|
# the License.
|
|
|
|
#
|
|
|
|
# ##############################################################################
|
|
|
|
|
2023-07-10 03:37:27 +02:00
|
|
|
# ~~~
|
|
|
|
# Important note:
|
|
|
|
# This CMakeLists.txt is not meant as a top-level CMakeLists.txt. Instead,
|
|
|
|
# CMake must be run using the top-level CMakeLists.txt from the nuttx
|
|
|
|
# repository and point to this directory via NUTTX_APPS_DIR. For example:
|
|
|
|
# cmake -S <nuttx-dir> -B <build-dir> [...] -DNUTTX_APPS_DIR=<apps-dir>
|
|
|
|
# ~~~
|
|
|
|
|
2023-02-07 07:17:28 +01:00
|
|
|
if(CONFIG_APPS_DIR)
|
2024-07-31 06:08:02 +02:00
|
|
|
# add apps cmake modules
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
|
|
|
include(nuttx_add_luamod)
|
2023-02-07 07:17:28 +01:00
|
|
|
nuttx_add_library(apps)
|
|
|
|
if(NOT EXISTS {NUTTX_APPS_BINDIR}/dummy.c)
|
|
|
|
file(TOUCH ${NUTTX_APPS_BINDIR}/dummy.c)
|
|
|
|
endif()
|
|
|
|
target_sources(apps PRIVATE ${NUTTX_APPS_BINDIR}/dummy.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(MAKE_DIRECTORY ${NUTTX_APPS_BINDIR}/include)
|
|
|
|
include_directories(include)
|
|
|
|
include_directories(${NUTTX_APPS_BINDIR}/include)
|
|
|
|
|
|
|
|
add_subdirectory(audioutils)
|
2023-07-14 12:33:49 +02:00
|
|
|
add_subdirectory(benchmarks)
|
2023-02-07 07:17:28 +01:00
|
|
|
add_subdirectory(boot)
|
|
|
|
add_subdirectory(canutils)
|
|
|
|
add_subdirectory(crypto)
|
|
|
|
add_subdirectory(fsutils)
|
|
|
|
add_subdirectory(games)
|
|
|
|
add_subdirectory(graphics)
|
|
|
|
add_subdirectory(industry)
|
|
|
|
add_subdirectory(interpreters)
|
2023-07-14 12:33:49 +02:00
|
|
|
add_subdirectory(logging)
|
|
|
|
add_subdirectory(lte)
|
2023-02-07 07:17:28 +01:00
|
|
|
add_subdirectory(math)
|
|
|
|
add_subdirectory(mlearning)
|
|
|
|
add_subdirectory(modbus)
|
|
|
|
add_subdirectory(netutils)
|
|
|
|
add_subdirectory(nshlib)
|
|
|
|
add_subdirectory(platform)
|
2023-07-14 12:33:49 +02:00
|
|
|
add_subdirectory(sdr)
|
2023-02-07 07:17:28 +01:00
|
|
|
add_subdirectory(system)
|
|
|
|
add_subdirectory(testing)
|
2024-03-07 05:37:18 +01:00
|
|
|
add_subdirectory(tools)
|
2024-07-03 11:18:33 +02:00
|
|
|
add_subdirectory(videoutils)
|
2023-02-07 07:17:28 +01:00
|
|
|
add_subdirectory(wireless)
|
|
|
|
|
2023-07-19 10:35:38 +02:00
|
|
|
# add examples and external at the end to allow library dependencies
|
|
|
|
add_subdirectory(examples)
|
2023-02-07 07:17:28 +01:00
|
|
|
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/external)
|
|
|
|
add_subdirectory(external)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory(builtin) # must be last
|
|
|
|
|
|
|
|
nuttx_generate_kconfig()
|