Files
MuditaOS/Target_Linux.cmake
Marcin Smoczyński bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00

21 lines
502 B
CMake

set(PROJECT_TARGET "TARGET_Linux" CACHE INTERNAL "")
add_compile_options(-funsigned-char)
set(TARGET_LIBRARIES
rt
pthread
portaudio
CACHE INTERNAL "" )
link_libraries(pthread rt)
option (LINUX_ENABLE_SANITIZER "Enable address sanitizer for Linux" ON)
if (LINUX_ENABLE_SANITIZER)
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
endif (LINUX_ENABLE_SANITIZER)
set(CMAKE_STRIP strip CACHE INTERNAL "")
set(CMAKE_OBJCOPY objcopy CACHE INTERNAL "")