~aleteoryx/muditaos

ref: 52ca291b30c634cee5286a5fa2b3febd0685fec4 muditaos/module-utils/third-party/tinyexpr.cmake -rw-r--r-- 591 bytes
52ca291b — Lucjan Bryndza [EGD-5097] Fix minor issues with littlefs fuse 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
include (thirdparty)

# add tinyexpr library sources
set (TINYEXPR_SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/tinyexpr)
set (TINYEXPR_SOURCES
        ${TINYEXPR_SRCDIR}/tinyexpr.c
)

# create static library for the third party
set (TINYEXPR_TARGET tinyexpr)
add_library (${TINYEXPR_TARGET} STATIC ${TINYEXPR_SOURCES})

# setup flags for the third party
third_party_target_setup (${TINYEXPR_TARGET})

# add include directory path
target_include_directories (${TINYEXPR_TARGET} PUBLIC ${TINYEXPR_SRCDIR})

# optimize thirdy party sources in dbeug
third_party_source_optimization (${TINYEXPR_SOURCES})