aboutsummaryrefslogtreecommitdiff
path: root/tools/cpm/cmake/ls.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cpm/cmake/ls.cmake')
-rwxr-xr-xtools/cpm/cmake/ls.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/cpm/cmake/ls.cmake b/tools/cpm/cmake/ls.cmake
new file mode 100755
index 0000000000..41a1d1d7af
--- /dev/null
+++ b/tools/cpm/cmake/ls.cmake
@@ -0,0 +1,24 @@
+#!/usr/bin/env -S cmake -P
+
+# SPDX-FileCopyrightText: Copyright 2026 crueter
+# SPDX-License-Identifier: LGPL-3.0-or-later
+
+cmake_minimum_required(VERSION 3.31)
+
+include(${CMAKE_CURRENT_LIST_DIR}/ScriptUtils.cmake)
+
+set(NO_ALL TRUE)
+
+function(usage)
+ echo([=[
+Usage: cpmutil.sh ls
+
+List all packages in the cpmfile.
+]=])
+endfunction()
+
+get_cpmfile_keys(keys)
+
+foreach(key ${keys})
+ echo("${key}")
+endforeach()