-
Notifications
You must be signed in to change notification settings - Fork 20
/
CMakeLists.txt
38 lines (34 loc) · 1.01 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
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(btest)
# Install scripts
install(DIRECTORY DESTINATION bin)
install(PROGRAMS
btest
btest-ask-update
btest-bg-run
btest-bg-run-helper
btest-bg-wait
btest-diff
btest-setsid
btest-progress
sphinx/btest-diff-rst
sphinx/btest-rst-cmd
sphinx/btest-rst-include
sphinx/btest-rst-pipe
DESTINATION bin)
if ( NOT PY_MOD_INSTALL_DIR )
# This is not a Zeek-bundled install, from which we'd inherit that
# variable. Default to "home"-style install.
set(PY_MOD_INSTALL_DIR lib/python)
endif ()
# Install the Python module
install(DIRECTORY DESTINATION ${PY_MOD_INSTALL_DIR})
install(FILES sphinx/btest-sphinx.py DESTINATION ${PY_MOD_INSTALL_DIR})
message(
"\n====================| BTest Build Summary |==================="
"\n"
"\nInstall prefix: ${CMAKE_INSTALL_PREFIX}"
"\nPython module path: ${PY_MOD_INSTALL_DIR}"
"\n"
"\n================================================================\n"
)