-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
108 lines (96 loc) · 2.3 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
108
cmake_minimum_required(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
option(FORTRAN "Compile Fortran components")
project(imaging2 CXX C Fortran)
if(UNIX)
include_directories(SYSTEM /usr/include/GL)
include_directories(SYSTEM /usr/include/libxml2)
endif(UNIX)
include_directories(SYSTEM ${CMAKE_SOURCE_DIR})
set(CORE_OBJECTS
core/Cmessage.cxx
core/distribution_utilities.cxx
core/utilities.cxx
core/vector_utilities.cxx
core/matrix_utilities.cxx
core/cio.cxx
core/xmlio.cxx
external/cg+/cgfam.f
external/cg+/cgsearch.f
external/gl2ps/gl2ps.c
external/gpc/gpc.c
external/triangle/triangle.c
external/aip/aip.c
external/liblbfgs/lbfgs.c
external/itpack/dsrc2c.f
graphics/DummyGraphics.cxx
graphics/GraphicsInterface.cxx
fem/Assembler.cxx
fem/ElementIntegrator.cxx
fem/FemKernel.cxx
fem/Image2Grid.cxx
fem/Image2Grid_impl.cxx
fem/ShapeFunction.cxx
fem/Transform.cxx
fem/triangle.c
fem/utilities.cxx
image/Color.cxx
image/cio.cxx
image/gio.cxx
image/GrayValue.cxx
image/utilities.cxx
lapack/linear_algebra.cxx
minimize/CovarianceMatrixAdaptation.cxx
minimize/Lbfgs.cxx
minimize/NlCg.cxx
minimize/SteepestDescent.cxx
polytope/gio.cxx
polytope/Polygon.cxx
polytope/SimplePolygon.cxx
polytope/xmlio.cxx
shape/BoundaryDiscretizer.cxx
shape/BsplineShape.cxx
shape/Circle.cxx
shape/gio.cxx
shape/mrep/MrepSkeleton2d.cxx
shape/mrep/MrepModel2d.cxx
shape/mrep/PolygonModel2d.cxx
shape/mrep/Position2d.cxx
shape/mrep/xmlio.cxx
shape/mrep/gio.cxx
shape/xmlio.cxx
shape/ShapeStatistics.cxx
statistic/LinearPca.cxx
statistic/utilities.cxx
solver/CgSolver.cxx
solver/utilities.cxx
spline/gio.cxx
spline/utilities.cxx
xml/XmlReader.cxx
xml/XmlWriter.cxx
)
set(SPOOLES_OBJECTS
solver/BiCgStabSolver.cxx
solver/LuSolver.cxx
solver/spooles.c
)
set(OPENGL_OBJECTS
graphics/Objects.cxx
graphics/OpenGlViewer.cxx
)
add_library(imaging2
${CORE_OBJECTS}
${SPOOLES_OBJECTS}
${OPENGL_OBJECTS}
)
set_target_properties(imaging2 PROPERTIES LINKER_LANGUAGE CXX)
add_subdirectory(core)
add_subdirectory(fem)
add_subdirectory(image)
add_subdirectory(polytope)
add_subdirectory(minimize)
add_subdirectory(shape)
add_subdirectory(statistic)
add_subdirectory(xml)