You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/01/27 08:56:18 UTC

(nuttx-apps) branch master updated: testing/getprime: add cmake support

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new d381699ac testing/getprime: add cmake support
d381699ac is described below

commit d381699ac1967cc4b9f0b28510cdb7574c976406
Author: Yanfeng Liu <yf...@qq.com>
AuthorDate: Sat Jan 27 11:36:51 2024 +0800

    testing/getprime: add cmake support
    
    add CMakeLists.txt to support building with CMake
    
    Signed-off-by: Yanfeng Liu <yf...@qq.com>
---
 testing/getprime/CMakeLists.txt | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/testing/getprime/CMakeLists.txt b/testing/getprime/CMakeLists.txt
new file mode 100644
index 000000000..cb6002d9c
--- /dev/null
+++ b/testing/getprime/CMakeLists.txt
@@ -0,0 +1,31 @@
+# ##############################################################################
+# apps/testing/getprime/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.
+#
+# ##############################################################################
+
+if(CONFIG_TESTING_GETPRIME)
+  nuttx_add_application(
+    NAME
+    ${CONFIG_TESTING_GETPRIME_PROGNAME}
+    SRCS
+    getprime_main.c
+    STACKSIZE
+    ${CONFIG_TESTING_GETPRIME_STACKSIZE}
+    PRIORITY
+    ${CONFIG_TESTING_GETPRIME_PRIORITY})
+endif()