-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
44 lines (33 loc) · 1.36 KB
/
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
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(trace-summary NONE)
include(cmake/CommonCMakeConfig.cmake)
########################################################################
## Dependency Configuration
find_package(Python 3.9 REQUIRED Interpreter)
if (NOT SUBNETTREE_FOUND)
# the check for SubnetTree is ignored if SubnetTree_FOUND is set
# in the cache or by another project that is including this one
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import SubnetTree"
RESULT_VARIABLE SUBNETTREE_IMPORT_RESULT)
if (SUBNETTREE_IMPORT_RESULT)
message(FATAL_ERROR "Could not find required dependency: SubnetTree")
endif ()
endif ()
########################################################################
## Install Files
include(InstallShellScript)
if ( NOT ZEEK_MAN_INSTALL_PATH )
set(ZEEK_MAN_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/share/man)
endif ()
InstallShellScript(bin trace-summary)
install(FILES trace-summary.1 DESTINATION ${ZEEK_MAN_INSTALL_PATH}/man1)
########################################################################
## Build Summary
message(
"\n=============| trace-summary Install Summary |================"
"\n"
"\nInstall destination: ${CMAKE_INSTALL_PREFIX}/bin"
"\n"
"\n================================================================\n"
)
include(UserChangedWarning)