-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (28 loc) · 951 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
32 lines (28 loc) · 951 Bytes
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
# Copyright (c) 2024 Eclipse Foundation
#
# This program and the accompanying materials are made available
# under the terms of the MIT license which is available at
# https://opensource.org/license/mit.
#
# SPDX-License-Identifier: MIT
#
# Contributors:
# Frédéric Desbiens - Initial version.
set(TARGET nanoprintf)
add_library(${TARGET} OBJECT
nanoprintf.c
)
target_include_directories(${TARGET}
PUBLIC
src
)
target_compile_definitions(${TARGET}
PUBLIC
NANOPRINTF_HEADER
)
#find_package(Threads REQUIRED)
#add_library(${TARGET_LOGGER} INTERFACE)
#add_library(nanoprintf::nanoprintf_header_only ALIAS ${TARGET_LOGGER})
#target_include_directories(${TARGET_LOGGER} INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src>"
# "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
#target_link_libraries(${TARGET_LOGGER} INTERFACE Threads::Threads)