-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
112 lines (93 loc) · 5.17 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
96
97
98
99
100
101
102
103
104
105
106
107
# ====================================================================================================
#
# SuPReMo: Surrogate Parameterised Respiratory Motion Model
# An implementation of the generalised motion modelling and image registration framework
#
# Copyright (c) University College London (UCL). All rights reserved.
#
# This software is distributed WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE.
#
# See LICENSE.txt in the top level directory for details.
#
# ====================================================================================================
# Add support to display the current git revision number
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" @ONLY)
add_library( GitRevision
GitSHA1.h
${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp )
install(TARGETS GitRevision RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES GitSHA1.h DESTINATION include)
# Build the libraries
# Supremo
add_library( Supremo
SupremoUtils.h
Supremo.h
Supremo.cpp )
install(TARGETS Supremo RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES SupremoUtils.h Supremo.h DESTINATION include)
# Transformation
add_library( Transformation
MathAdditions.h
BSplineTransformation.h
BSplineTransformation.cpp
SlidingTransformation.h
SlidingTransformation.cpp
Transformation.h
Transformation.cpp )
install(TARGETS Transformation RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES MathAdditions.h BSplineTransformation.h Transformation.h DESTINATION include)
# The command-line parser
add_library( CommandLineParser
CommandLineParser.h
CommandLineParser.cpp )
install(TARGETS CommandLineParser RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES CommandLineParser.h DESTINATION include)
# The correspondence model
add_library( CorrespondenceModel
CorrespondenceModel.h
CorrespondenceModel.cpp )
install(TARGETS CorrespondenceModel RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES CorrespondenceModel.h DESTINATION include)
# The image similarity
add_library( ImageSimilarity
ImageSimilarity.h
SSDImageSimilarity.h
SSDImageSimilarity.cpp )
install(TARGETS ImageSimilarity RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES SSDImageSimilarity.h DESTINATION include)
# The objective function
add_library( ObjectiveFunction
ObjectiveFunction.h
ObjectiveFunction.cpp )
install(TARGETS ObjectiveFunction RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES ObjectiveFunction.h DESTINATION include)
# The motion-compensatedd image reconstruction
add_library( MoCoRecon
MoCoReconWeightedAverage.h
MoCoReconWeightedAverage.cpp
# MoCoReconSuperResolutionIBP.h
# MoCoReconSuperResolutionIBP.cpp
MoCoRecon.h
MoCoRecon.cpp )
install(TARGETS MoCoRecon RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES MoCoReconWeightedAverage.h MoCoRecon.h DESTINATION include)
# The optimiser
add_library( Optimiser
Optimiser.h
Optimiser.cpp
ConjugateGradientOptimiser.h
ConjugateGradientOptimiser.cpp )
install(TARGETS Optimiser RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES Optimiser.h ConjugateGradientOptimiser.h DESTINATION include)
# The image acquisition
add_library( ImageAcquisition
ImageAcquisition.h
ImageAcquisition.cpp
NoImageAcquisition.h
NoImageAcquisition.cpp
LowResolutionImageAcquisition.h
LowResolutionImageAcquisition.cpp)
install(TARGETS ImageAcquisition RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
install(FILES ImageAcquisition.h NoImageAcquisition.h LowResolutionImageAcquisition.h DESTINATION include)