-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (29 loc) · 965 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
35
36
37
38
39
40
41
42
cmake_minimum_required( VERSION 3.15)
project( mulle-monitor NONE)
execute_process( COMMAND ./mulle-monitor version
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
OUTPUT_VARIABLE MULLE_MONITOR_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
message( STATUS "MULLE_MONITOR_VERSION is ${MULLE_MONITOR_VERSION} according to mulle-monitor")
set( PROJECT_VERSION "${MULLE_MONITOR_VERSION}")
set( SCRIPTS
mulle-monitor
)
file( GLOB LIBRARY_SCRIPTS
"src/*.sh"
)
INSTALL( FILES ${SCRIPTS}
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ
DESTINATION "bin")
INSTALL( FILES ${LIBRARY_SCRIPTS}
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ
DESTINATION "libexec/mulle-monitor")
######
#
# must be after CPACK_PACKAGE_VERSION
include( CMakePackage.cmake)
include( CPack)