~aleteoryx/muditaos

ref: f0d6d4b641744bf82f312ce6c6881ee1c43e50ab muditaos/module-utils/third-party/tinyexpr.cmake -rw-r--r-- 591 bytes
f0d6d4b6 — Adam Dobrowolski [EGD-5238] Added tidy target to CI to inform about added tidy issues 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})