mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 05:47:58 -05:00
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.
21 lines
591 B
CMake
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})
|