-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
24 lines (18 loc) · 842 Bytes
/
CMakeLists.txt
File metadata and controls
24 lines (18 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 3.7...3.24)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
project(
Debugger
VERSION 1.0
LANGUAGES C CXX)
add_executable(debug src/debug.cxx extern/linenoise/linenoise.c)
target_compile_features(debug PUBLIC cxx_std_20)
set_target_properties(debug PROPERTIES CXX_EXTENSIONS OFF)
target_include_directories(debug PUBLIC include extern/libelfin extern/linenoise)
target_link_libraries(debug
/debugger/extern/libelfin/dwarf/libdwarf++.so
/debugger/extern/libelfin/elf/libelf++.so)
find_program(CLANG_TIDY_EXE NAMES "clang-tidy")
set(CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE}" "-checks=-*,modernize-*,hicpp-*,performance-*,clang-analyzer-*")
set_target_properties(debug PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}")