~aleteoryx/muditaos

ref: 6b45d3b71dc1e09a16a3bc66cc54ced1c9de8d43 muditaos/Target_Linux.cmake -rw-r--r-- 520 bytes
6b45d3b7 — Maciej Gibowicz [BH-2097] Adding and deleting a single custom quote 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
set(PROJECT_TARGET "TARGET_Linux" CACHE INTERNAL "")

add_compile_options(-funsigned-char)

set(TARGET_LIBRARIES
    rt
    pthread
    CACHE INTERNAL "" )

link_libraries(pthread rt)

option (LINUX_ENABLE_SANITIZER "Enable address sanitizer for Linux" OFF)
if (LINUX_ENABLE_SANITIZER)
    add_compile_options(-fsanitize=address)
    add_link_options(-fsanitize=address)
    add_link_options(-pthread)
endif (LINUX_ENABLE_SANITIZER)

set(CMAKE_STRIP strip CACHE INTERNAL "")
set(CMAKE_OBJCOPY objcopy CACHE INTERNAL "")