-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
59 lines (53 loc) · 1.96 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
###########################################################################
# Copyright (C) 2015-2025 IoT.bzh Company
#
# Author: José Bollo <[email protected]>
#
# $RP_BEGIN_LICENSE$
# Commercial License Usage
# Licensees holding valid commercial IoT.bzh licenses may use this file in
# accordance with the commercial license agreement provided with the
# Software or, alternatively, in accordance with the terms contained in
# a written agreement between you and The IoT.bzh Company. For licensing terms
# and conditions see https://www.iot.bzh/terms-conditions. For further
# information use the contact form at https://www.iot.bzh/contact.
#
# GNU General Public License Usage
# Alternatively, this file may be used under the terms of the GNU General
# Public license version 3. This license is as published by the Free Software
# Foundation and appearing in the file LICENSE.GPLv3 included in the packaging
# of this file. Please review the following information to ensure the GNU
# General Public License requirements will be met
# https://www.gnu.org/licenses/gpl-3.0.html.
# $RP_END_LICENSE$
###########################################################################
cmake_minimum_required(VERSION 3.13)
project(rp-lib-utils
VERSION 0.2.1
DESCRIPTION "Programming utilities"
HOMEPAGE_URL "https://github.com/redpesk-core/rp-lib-utils"
LANGUAGES C)
set(LIBRP_UTILS_VERSION "${PROJECT_VERSION}")
option(NO_LIBUUID "Do not use libuuid" OFF)
# Detect the platform reliably
if(ZEPHYR_BASE)
if (NOT CONFIG_AFB_BINDER)
return()
endif()
set(WITH_ZEPHYR YES)
set(NO_JSON_C ON)
set(NO_YAML ON)
set(NO_CURL ON)
set(NO_SYSTEMD ON)
set(NO_LIBUUID ON)
set(NO_SHARED_LIB ON)
add_definitions(-DWITH_DIRENT=0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
else()
set(WITH_ZEPHYR NO)
include(FindPkgConfig)
include(GNUInstallDirs)
endif()
# build sources
add_subdirectory(src)