Files
MuditaOS/Target_Linux.cmake
Wiktor S. Ovalle Correa 3fe2bff567 [EGD-3469] Fix assets and image creation
Preparing and copying of assets to the image was unreliable.
Switched from cmake mechanism to rsync, making resulting
scheme universal and reducing output folder pollution.
2021-04-09 12:47:57 +02:00

29 lines
729 B
CMake

set(PROJECT_TARGET "TARGET_Linux" CACHE INTERNAL "")
set(TARGET_SOURCES CACHE INTERNAL "")
set(TARGET_DIR_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/board/linux CACHE INTERNAL "")
set(TARGET_COMPILE_FEATURES CACHE INTERNAL "")
set(TARGET_COMPILE_DEFINITIONS CACHE INTERNAL "")
add_compile_options(-funsigned-char)
set(TARGET_LIBRARIES
rt
pthread
portaudio
CACHE INTERNAL "" )
option (LINUX_ENABLE_SANITIZER "Enable address sanitizer for Linux" ON)
if (LINUX_ENABLE_SANITIZER)
add_compile_options(-fsanitize=address -static-libasan)
add_link_options(-fsanitize=address -static-libasan)
endif (LINUX_ENABLE_SANITIZER)
set(CMAKE_STRIP strip CACHE INTERNAL "")
set(CMAKE_OBJCOPY objcopy CACHE INTERNAL "")