-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
25 lines (22 loc) · 943 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
cmake_minimum_required(VERSION 3.22..3.25)
project(trapit VERSION 0.1.1)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_executable(trapit trapit.cc)
target_compile_definitions(
trapit PRIVATE TRAPIT_VERSION="${CMAKE_PROJECT_VERSION}")
install(TARGETS trapit)
set(CPACK_PACKAGE_VENDOR "Jiangge Zhang <[email protected]>")
set(CPACK_PACKAGE_CONTACT "Jiangge Zhang <[email protected]>")
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/dist")
set(
CPACK_PACKAGE_DESCRIPTION_SUMMARY "Command line utility that traps \
short-lived processes to inspect them with PID-aware tools (e.g. strace)")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/tonyseek/trapit")
set(CPACK_STRIP_FILES TRUE)
set(
CPACK_SOURCE_IGNORE_FILES
"\\\\.git/" "\\\\.github/" "\\\\.sw[op]$" "/build/")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.2.5)")
include(CPack)