Commit 2b348fca authored by gsell's avatar gsell

Merge branch '394-cleanup-cmakelists-txt-in-classic' into 'master'

Resolve "Cleanup CMakeLists.txt in Classic"

Closes #394

See merge request OPAL/src!206
parents 090544aa d72a5b2e
......@@ -2,62 +2,62 @@ add_subdirectory(EndFieldModel)
add_subdirectory(MultipoleTFunctions)
set (_SRCS
AlignWrapper.cpp
AttributeSet.cpp
BeamBeam.cpp
BeamlineVisitor.cpp
BeamStripping.cpp
Bend2D.cpp
BendBase.cpp
CCollimator.cpp
Component.cpp
Corrector.cpp
Cyclotron.cpp
CyclotronValley.cpp
Degrader.cpp
Diagnostic.cpp
Drift.cpp
ElementBase.cpp
ElementImage.cpp
FlexibleCollimator.cpp
Integrator.cpp
Lambertson.cpp
Marker.cpp
Monitor.cpp
Multipole.cpp
MultipoleT.cpp
MultipoleTBase.cpp
MultipoleTStraight.cpp
MultipoleTCurvedConstRadius.cpp
MultipoleTCurvedVarRadius.cpp
Offset.cpp
ParallelPlate.cpp
Patch.cpp
PluginElement.cpp
Probe.cpp
RBend.cpp
RBend3D.cpp
RFCavity.cpp
RFQuadrupole.cpp
Ring.cpp
SBend.cpp
SBend3D.cpp
ScalingFFAMagnet.cpp
Separator.cpp
Septum.cpp
Solenoid.cpp
Source.cpp
Stripper.cpp
TravelingWave.cpp
VariableRFCavity.cpp
VariableRFCavityFringeField.cpp
)
AlignWrapper.cpp
AttributeSet.cpp
BeamBeam.cpp
BeamlineVisitor.cpp
BeamStripping.cpp
Bend2D.cpp
BendBase.cpp
CCollimator.cpp
Component.cpp
Corrector.cpp
Cyclotron.cpp
CyclotronValley.cpp
Degrader.cpp
Diagnostic.cpp
Drift.cpp
ElementBase.cpp
ElementImage.cpp
FlexibleCollimator.cpp
Integrator.cpp
Lambertson.cpp
Marker.cpp
Monitor.cpp
Multipole.cpp
MultipoleT.cpp
MultipoleTBase.cpp
MultipoleTStraight.cpp
MultipoleTCurvedConstRadius.cpp
MultipoleTCurvedVarRadius.cpp
Offset.cpp
ParallelPlate.cpp
Patch.cpp
PluginElement.cpp
Probe.cpp
RBend.cpp
RBend3D.cpp
RFCavity.cpp
RFQuadrupole.cpp
Ring.cpp
SBend.cpp
SBend3D.cpp
ScalingFFAMagnet.cpp
Separator.cpp
Septum.cpp
Solenoid.cpp
Source.cpp
Stripper.cpp
TravelingWave.cpp
VariableRFCavity.cpp
VariableRFCavityFringeField.cpp
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
AlignWrapper.h
......@@ -111,10 +111,14 @@ set (HDRS
TravelingWave.h
VariableRFCavity.h
VariableRFCavityFringeField.h
)
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/AbsBeamline")
#Turn on gcov
#set(CMAKE_CXX_FLAGS "-g -O0 -Wall -fprofile-arcs -ftest-coverage")
#set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)
\ No newline at end of file
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
EndFieldModel.cpp
Enge.cpp
Tanh.cpp
)
EndFieldModel.cpp
Enge.cpp
Tanh.cpp
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
EndFieldModel.h
Enge.h
Tanh.h
)
EndFieldModel.h
Enge.h
Tanh.h
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/AbsBeamline/EndFieldModel/")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
CoordinateTransform.cpp
DifferentialOperator.cpp
DifferentialOperatorTwo.cpp
Polynomial.cpp
PolynomialSum.cpp
RecursionRelation.cpp
RecursionRelationTwo.cpp
tanhDeriv.cpp
TwoPolynomial.cpp
)
CoordinateTransform.cpp
DifferentialOperator.cpp
DifferentialOperatorTwo.cpp
Polynomial.cpp
PolynomialSum.cpp
RecursionRelation.cpp
RecursionRelationTwo.cpp
tanhDeriv.cpp
TwoPolynomial.cpp
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
CoordinateTransform.h
DifferentialOperator.h
DifferentialOperatorTwo.h
Polynomial.h
PolynomialSum.h
RecursionRelation.h
RecursionRelationTwo.h
tanhDeriv.h
TwoPolynomial.h
)
CoordinateTransform.h
DifferentialOperator.h
DifferentialOperatorTwo.h
Polynomial.h
PolynomialSum.h
RecursionRelation.h
RecursionRelationTwo.h
tanhDeriv.h
TwoPolynomial.h
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/AbsBeamline/MultipoleTFunctions/")
#Turn on gcov
#set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)
#set(CMAKE_CXX_FLAGS "-g -O0 -Wall -fprofile-arcs -ftest-coverage")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
ComplexEigen.cpp
DoubleEigen.cpp
DynamicFixedPoint.cpp
NormalForm.cpp
StaticFixedPoint.cpp
TpsComplex.cpp
TpsData.cpp
TpsDouble.cpp
TpsMonomial.cpp
TpsTps.cpp
)
ComplexEigen.cpp
DoubleEigen.cpp
DynamicFixedPoint.cpp
NormalForm.cpp
StaticFixedPoint.cpp
TpsComplex.cpp
TpsData.cpp
TpsDouble.cpp
TpsMonomial.cpp
TpsTps.cpp
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
Array1D.h
......@@ -40,8 +40,16 @@ set (HDRS
Vps.hpp
VpsInvMap.h
VpsMap.h
)
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Algebra")
# Some source files included in header files
install (FILES ${_SRCS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Algebra")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
AbstractMapper.cpp
AbstractTimeDependence.cpp
AbstractTracker.cpp
CoordinateSystemTrafo.cpp
DefaultVisitor.cpp
Flagger.cpp
IdealMapper.cpp
LinearMapper.cpp
MapIntegrator.cpp
Mapper.cpp
OrbitTracker.cpp
PartBunch.cpp
PartBins.cpp
PartBinsCyc.cpp
PartData.cpp
OpalParticle.cpp
PolynomialTimeDependence.cpp
SplineTimeDependence.cpp
Surveyor.cpp
ThinMapper.cpp
ThinTracker.cpp
TrackIntegrator.cpp
Tracker.cpp
Quaternion.cpp
)
AbstractMapper.cpp
AbstractTimeDependence.cpp
AbstractTracker.cpp
CoordinateSystemTrafo.cpp
DefaultVisitor.cpp
Flagger.cpp
IdealMapper.cpp
LinearMapper.cpp
MapIntegrator.cpp
Mapper.cpp
OrbitTracker.cpp
PartBunch.cpp
PartBins.cpp
PartBinsCyc.cpp
PartData.cpp
OpalParticle.cpp
PolynomialTimeDependence.cpp
SplineTimeDependence.cpp
Surveyor.cpp
ThinMapper.cpp
ThinTracker.cpp
TrackIntegrator.cpp
Tracker.cpp
Quaternion.cpp
)
if ( ENABLE_AMR )
list(APPEND _SRCS AmrPartBunch.cpp)
endif ( ENABLE_AMR )
if (ENABLE_AMR)
list (APPEND _SRCS AmrPartBunch.cpp)
endif ()
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
AbstractMapper.h
......@@ -65,10 +65,18 @@ set (HDRS
Tracker.h
TrackIntegrator.h
Vektor.h
)
)
if ( ENABLE_AMR )
if (ENABLE_AMR)
list(APPEND HDRS AmrPartBunch.h)
endif ( ENABLE_AMR )
endif ()
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Algorithms")
\ No newline at end of file
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Algorithms")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
BeamBeamRep.cpp
BeamStrippingRep.cpp
CCollimatorRep.cpp
CorrectorRep.cpp
CyclotronRep.cpp
CyclotronValleyRep.cpp
DegraderRep.cpp
DriftRep.cpp
FlexibleCollimatorRep.cpp
MarkerRep.cpp
MonitorRep.cpp
MultipoleRep.cpp
Octupole.cpp
ParallelPlateRep.cpp
PatchRep.cpp
ProbeRep.cpp
Quadrupole.cpp
RBendRep.cpp
RFCavityRep.cpp
SBendRep.cpp
SeparatorRep.cpp
SeptumRep.cpp
Sextupole.cpp
SkewOctupole.cpp
SkewQuadrupole.cpp
SkewSextupole.cpp
SolenoidRep.cpp
SourceRep.cpp
StripperRep.cpp
TravelingWaveRep.cpp
XCorrectorRep.cpp
XMonitorRep.cpp
YCorrectorRep.cpp
YMonitorRep.cpp
)
BeamBeamRep.cpp
BeamStrippingRep.cpp
CCollimatorRep.cpp
CorrectorRep.cpp
CyclotronRep.cpp
CyclotronValleyRep.cpp
DegraderRep.cpp
DriftRep.cpp
FlexibleCollimatorRep.cpp
MarkerRep.cpp
MonitorRep.cpp
MultipoleRep.cpp
Octupole.cpp
ParallelPlateRep.cpp
PatchRep.cpp
ProbeRep.cpp
Quadrupole.cpp
RBendRep.cpp
RFCavityRep.cpp
SBendRep.cpp
SeparatorRep.cpp
SeptumRep.cpp
Sextupole.cpp
SkewOctupole.cpp
SkewQuadrupole.cpp
SkewSextupole.cpp
SolenoidRep.cpp
SourceRep.cpp
StripperRep.cpp
TravelingWaveRep.cpp
XCorrectorRep.cpp
XMonitorRep.cpp
YCorrectorRep.cpp
YMonitorRep.cpp
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
BeamBeamRep.h
......@@ -77,6 +77,14 @@ set (HDRS
XMonitorRep.h
YCorrectorRep.h
YMonitorRep.h
)
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/BeamlineCore")
\ No newline at end of file
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/BeamlineCore")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
Euclid3D.cpp
Geometry.cpp
Matrix3D.cpp
Euclid3DGeometry.cpp
NullGeometry.cpp
OffsetGeometry.cpp
PlanarArcGeometry.cpp
VarRadiusGeometry.cpp
RBendGeometry.cpp
Rotation3D.cpp
SRotatedGeometry.cpp
StraightGeometry.cpp
Vector3D.cpp
)
Euclid3D.cpp
Geometry.cpp
Matrix3D.cpp
Euclid3DGeometry.cpp
NullGeometry.cpp
OffsetGeometry.cpp
PlanarArcGeometry.cpp
VarRadiusGeometry.cpp
RBendGeometry.cpp
Rotation3D.cpp
SRotatedGeometry.cpp
StraightGeometry.cpp
Vector3D.cpp
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources(${_SRCS})
set (HDRS
Euclid3DGeometry.h
......@@ -34,6 +34,14 @@ set (HDRS
SRotatedGeometry.h
StraightGeometry.h
Vector3D.h
)
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/BeamlineGeometry")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
......@@ -5,13 +5,13 @@ set (_SRCS
FlaggedBeamline.cpp
FlaggedElmPtr.cpp
SimpleBeamline.cpp
)
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
BeamlineGeometry.h
......@@ -21,6 +21,14 @@ set (HDRS
FlaggedElmPtr.h
SimpleBeamline.h
TBeamline.h
)
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Beamlines")
\ No newline at end of file
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Beamlines")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
......@@ -21,3 +21,11 @@ add_subdirectory(TrimCoils)
add_subdirectory(Utilities)
set(OPAL_SRCS "${OPAL_SRCS}" PARENT_SCOPE)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
Channel.cpp
ConstChannel.cpp
)
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
......@@ -16,6 +16,14 @@ set (HDRS
DirectChannel.h
IndexedChannel.h
IndirectChannel.h
)
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Channels")
\ No newline at end of file
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Channels")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
CorrectorWrapper.cpp
MultipoleWrapper.cpp
SBendWrapper.cpp
RBendWrapper.cpp
CyclotronWrapper.cpp
)
CorrectorWrapper.cpp
MultipoleWrapper.cpp
SBendWrapper.cpp
RBendWrapper.cpp
CyclotronWrapper.cpp
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
CorrectorWrapper.h
......@@ -18,6 +18,14 @@ set (HDRS
MultipoleWrapper.h
RBendWrapper.h
SBendWrapper.h
)
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/ComponentWrappers")
\ No newline at end of file
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/ComponentWrappers")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
ElementFactory.cpp
Factory.cpp
)
ElementFactory.cpp
Factory.cpp
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_OPAL_SOURCES(${_SRCS})
add_opal_sources (${_SRCS})
set (HDRS
ElementFactory.h
Factory.h
)
)
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Construction")
\ No newline at end of file
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Construction")
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake