File: CMakeLists.txt

package info (click to toggle)
ecflow 5.15.2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,872 kB
  • sloc: cpp: 269,341; python: 22,756; sh: 3,609; perl: 770; xml: 333; f90: 204; ansic: 141; makefile: 63
file content (92 lines) | stat: -rw-r--r-- 2,118 bytes parent folder | download | duplicates (3)
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
84
85
86
87
88
89
90
91
92
#
# 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.
#

set(srcs
  # Headers
  src/ecflow/simulator/Analyser.hpp
  src/ecflow/simulator/AstAnalyserVisitor.hpp
  src/ecflow/simulator/DefsAnalyserVisitor.hpp
  src/ecflow/simulator/FlatAnalyserVisitor.hpp
  src/ecflow/simulator/Simulator.hpp
  src/ecflow/simulator/SimulatorVisitor.hpp
  # Sources
  src/ecflow/simulator/Analyser.cpp
  src/ecflow/simulator/AstAnalyserVisitor.cpp
  src/ecflow/simulator/DefsAnalyserVisitor.cpp
  src/ecflow/simulator/FlatAnalyserVisitor.cpp
  src/ecflow/simulator/Simulator.cpp
  src/ecflow/simulator/SimulatorVisitor.cpp
)
ecbuild_add_library(
  TARGET
    libsimulator
  NOINSTALL
  TYPE STATIC
  SOURCES
    ${srcs}
  PUBLIC_INCLUDES
    src
  PUBLIC_LIBS
    ecflow_all
)
target_clangformat(libsimulator)

set(test_srcs
  # Headers
  test/TestUtil.hpp
  # Sources
  test/TestAnalysis.cpp
  test/TestAutoArchive.cpp
  test/TestAutoCancel.cpp
  test/TestAutoCancel.cpp
  test/TestAutoRestore.cpp
  test/TestMeter.cpp
  test/TestRepeat.cpp
  test/TestSimulator.cpp
  test/TestSimulator_main.cpp # test entry point
  test/TestTime.cpp
  test/TestToday.cpp
  test/TestUtil.cpp
)
ecbuild_add_test(
  TARGET
    s_simulator
  LABELS
    integration nightly
  SOURCES
    ${test_srcs}
  LIBS
    libsimulator
    Threads::Threads
  TEST_DEPENDS
    u_base
)
target_clangformat(s_simulator CONDITION ENABLE_TESTS)

if (ENABLE_ALL_TESTS)

  ecbuild_add_test(
    TARGET
      s_simulator_single
    LABELS
      integration nightly
    SOURCES
      test/TestSingleSimulator.cpp
      test/TestSingleSimulator_main.cpp # test entry point
      test/TestUtil.cpp
    LIBS
      libsimulator
      Threads::Threads
    TEST_DEPENDS
      u_base
  )
  target_clangformat(s_simulator_single CONDITION ENABLE_TESTS)

endif()