~aleteoryx/muditaos

ref: 8d9719e8b9d3aa0f99af6f7405e63154e46a8d16 muditaos/config/CopyGdbInit.cmake -rw-r--r-- 460 bytes
8d9719e8 — Szymon Mroczek [EGD-3510] audio codec configuration for headset microphone (#1004) 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if ($ENV{JETBRAINS_IDE})
    set(CLION_IDE True CACHE BOOL "Build under CLion")
endif ()

if (${PROJECT_TARGET} STREQUAL "TARGET_Linux")
    set(GDB_INIT_SCRIPT "${CMAKE_SOURCE_DIR}/.gdbinit")
else()
    if(CLION_IDE)
        set(GDB_INIT_SCRIPT "${CMAKE_SOURCE_DIR}/.gdbinit-1051-clion")
    else()
        set(GDB_INIT_SCRIPT "${CMAKE_SOURCE_DIR}/.gdbinit-1051")
    endif()
endif()

configure_file(${GDB_INIT_SCRIPT} ${CMAKE_BINARY_DIR}/.gdbinit COPYONLY)