-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (26 loc) · 945 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# @file CMakeLists.txt
# @brief
# @date 2023-02-01
# @author Peter
# @copyright
# Peter of [ThinkSpirit Laboratory](http://thinkspirit.org/)
# of [Nanjing University of Information Science & Technology](http://www.nuist.edu.cn/)
# all rights reserved
#
if (CMAKE_CXX_PLATFORM_ID MATCHES "Linux")
set(KERBAL_INSTALL_GDB_PRETTY_PRINTER_DEFAULT ON)
endif ()
if (CMAKE_CXX_PLATFORM_ID MATCHES "Windows")
set(KERBAL_INSTALL_NATVIS_PRETTY_PRINTER_DEFAULT ON)
endif ()
# GDB pretty printer
option(KERBAL_INSTALL_GDB_PRETTY_PRINTER "install GDB pretty printer" ${KERBAL_INSTALL_GDB_PRETTY_PRINTER_DEFAULT})
if (KERBAL_INSTALL_GDB_PRETTY_PRINTER)
add_subdirectory(gdb)
endif ()
# natvis pretty printer
option(KERBAL_INSTALL_NATVIS_PRETTY_PRINTER "install natvis pretty printer" ${KERBAL_INSTALL_NATVIS_PRETTY_PRINTER_DEFAULT})
if (KERBAL_INSTALL_NATVIS_PRETTY_PRINTER)
add_subdirectory(natvis)
endif ()