-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
95 lines (85 loc) · 2.32 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
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
93
94
95
cmake_minimum_required(VERSION 3.8)
project(HFold)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \ -w \ -O3")
SET(SOURCE
src/W_final.cpp
src/pseudo_loop.cpp
src/HFold.cpp
src/cmdline.cc
src/Result.cc
src/s_energy_matrix.cpp
src/Hotspot.cc
src/sparse_tree.cc
)
set(constraints_SOURCE
src/ViennaRNA/constraints/constraints.c
src/ViennaRNA/constraints/hard.c
src/ViennaRNA/constraints/SHAPE.c
src/ViennaRNA/constraints/soft.c
)
set(datastructures_SOURCE
src/ViennaRNA/datastructures/basic_datastructures.c
src/ViennaRNA/datastructures/char_stream.c
src/ViennaRNA/datastructures/lists.c
)
set(io_SOURCE
src/ViennaRNA/io/file_formats.c
src/ViennaRNA/io/io_utils.c
)
set(landscape_SOURCE
src/ViennaRNA/landscape/move.c
)
set(loops_SOURCE
src/ViennaRNA/loops/external_pf.c
src/ViennaRNA/loops/external.c
src/ViennaRNA/loops/hairpin.c
src/ViennaRNA/loops/internal.c
src/ViennaRNA/loops/multibranch.c
)
set(params_SOURCE
src/ViennaRNA/params/default.c
src/ViennaRNA/params/params.c
src/ViennaRNA/params/io.c
)
set(utils_SOURCE
src/ViennaRNA/utils/cpu.c
src/ViennaRNA/utils/higher_order_functions.c
src/ViennaRNA/utils/string_utils.c
src/ViennaRNA/utils/structure_utils.c
src/ViennaRNA/utils/utils.c
)
set(vienna_SOURCE
${constraints_SOURCE} ${datastructures_SOURCE}
${io_SOURCE} ${landscape_SOURCE}
${loops_SOURCE} ${params_SOURCE}
${utils_SOURCE}
src/ViennaRNA/alphabet.c
src/ViennaRNA/boltzmann_sampling.c
src/ViennaRNA/centroid.c
src/ViennaRNA/cofold.c
src/ViennaRNA/commands.c
src/ViennaRNA/dp_matrices.c
src/ViennaRNA/equilibrium_probs.c
src/ViennaRNA/eval.c
src/ViennaRNA/fold_compound.c
src/ViennaRNA/fold.c
src/ViennaRNA/gquad.c
src/ViennaRNA/grammar.c
src/ViennaRNA/MEA.c
src/ViennaRNA/mfe.c
src/ViennaRNA/mm.c
src/ViennaRNA/model.c
src/ViennaRNA/part_func.c
src/ViennaRNA/ribo.c
src/ViennaRNA/sequence.c
src/ViennaRNA/subopt.c
src/ViennaRNA/unstructured_domains.c
)
add_library(RNA STATIC ${vienna_SOURCE})
# configure_file(RNA.pc.in RNA.pc @ONLY)
target_include_directories(RNA PRIVATE .)
add_executable(HFold ${SOURCE})
target_link_libraries(HFold PRIVATE RNA)
include_directories(src)