mirror of
https://github.com/mudita/MuditaOS.git
synced 2025-12-23 22:17:57 -05:00
Move cmake scripts/modules to separate directory, adding Products will add new more scripts so first clean up, then changes.
17 lines
460 B
CMake
17 lines
460 B
CMake
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)
|
|
|