File: CMakeLists.txt

package info (click to toggle)
ecflow 5.13.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 51,304 kB
  • sloc: cpp: 259,208; python: 22,228; sh: 3,216; perl: 770; xml: 333; f90: 199; ansic: 141; makefile: 71
file content (83 lines) | stat: -rw-r--r-- 1,998 bytes parent folder | download | duplicates (2)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
# Copyright 2009- ECMWF.
#
# This software is licensed under the terms of the Apache Licence version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.
#

# the list of files we want to install bin
set(files
  ecflow_ui
)

# the list of files we want to install to share/ecflow/etc
set(files_share
  ecflow_ui_create_jira_issue.sh
  ecflow_ui_node_state_diag.sh
  ecflow_ui_transfer_file.sh
  ecflow_test_ui.sh
)

# set variables which will be expanded in the startup script
if(ENABLE_UI_BACKTRACE)
  set(UI_BACKTRACE yes)
else()
  set(UI_BACKTRACE no)
endif()

if(NOT UI_BACKTRACE_EMAIL_ADDRESS_FILE)
  set(UI_BACKTRACE_EMAIL_ADDRESS_FILE "x")
endif()

if(NOT UI_LOG_FILE)
  set(UI_LOG_FILE "x")
endif()

if(NOT UI_LOG_SITE_TAG)
  set(UI_LOG_SITE_TAG "x")
endif()

# for each file, copy it into the build directory at build time
# and install it into the installation directory at install time (!)
foreach( f ${files} )
  configure_file(${f}.in ${CMAKE_BINARY_DIR}/bin/${f} @ONLY)

  # ensure file is installed at install time
  install(
    FILES
      ${CMAKE_BINARY_DIR}/bin/${f}
    DESTINATION
      bin
    PERMISSIONS
      OWNER_WRITE
      OWNER_READ
      GROUP_READ
      WORLD_READ
      OWNER_EXECUTE
      GROUP_EXECUTE
      WORLD_EXECUTE)
endforeach()


# for each file, copy it into the build directory at build time
# and install it into the installation directory at install time (!)
foreach( f ${files_share} )
  configure_file(${f}.in ${CMAKE_BINARY_DIR}/share/ecflow/etc/${f} @ONLY)

  install(
    FILES
      ${CMAKE_BINARY_DIR}/share/ecflow/etc/${f}
    DESTINATION
      share/ecflow/etc
    PERMISSIONS
      OWNER_WRITE
      OWNER_READ
      GROUP_READ
      WORLD_READ
      OWNER_EXECUTE
      GROUP_EXECUTE
      WORLD_EXECUTE)
endforeach()