Files
MuditaOS/module-utils/third-party/tinyexpr.cmake
Marcin Smoczyński 4e00741886 [EGD-4144] build: individual libs for 3rdparty (#925)
Create individual library for each of third party project to be able to
determine memory usage of each of project's components.

Disable third party optimization for linux platform.
2020-11-02 15:08:03 +01:00

21 lines
591 B
CMake

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})