Commit 080163d9 authored by gsell's avatar gsell
Browse files

Cleanup CMakeLists.txt in IPPL

parent 33008b70
SET(${PROJECT_NAME}_CMAKE_CXX_FLAGS "${${PROJECT_NAME}_CXX_FLAGS}")
SET(${PROJECT_NAME}_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include")
SET(${PROJECT_NAME}_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/lib")
SET(${PROJECT_NAME}_LIBRARY "ippl")
\ No newline at end of file
set (${PROJECT_NAME}_CMAKE_CXX_FLAGS "${${PROJECT_NAME}_CXX_FLAGS}")
set (${PROJECT_NAME}_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include")
set (${PROJECT_NAME}_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/lib")
set (${PROJECT_NAME}_LIBRARY "ippl")
SET (_SRCS
set (_SRCS
)
SET (_HDRS
set (_HDRS
ParticleAmrLayout.h
AmrParticleBase.h
AmrParticleBase.hpp
AmrParticleLevelCounter.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/AmrParticle)
install (FILES ${_HDRS} DESTINATION include/AmrParticle)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
set (_SRCS
)
SET (_HDRS
set (_HDRS
AntiSymTenzor.h
AppTypeTraits.h
dcomplex.h
......@@ -19,11 +19,20 @@ SET (_HDRS
Vektor.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
install (FILES ${_HDRS} DESTINATION include/AppTypes)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
INSTALL (FILES ${_HDRS} DESTINATION include/AppTypes)
......@@ -23,47 +23,6 @@ set (IPPL_COMPILE_USER \"${WHOAMI_OUT}\")
configure_file (IpplVersions.h.in ${CMAKE_CURRENT_SOURCE_DIR}/IpplVersions.h)
if (UNUSED)
### print the compiler flags #############################
set (PRETTY_PRINT_WIDTH 78)
string (TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_STR)
set (COMPILE_FLAGS_STR
"${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_STR}}")
string (REGEX REPLACE " +" ";" COMPILE_FLAGS_LIST ${COMPILE_FLAGS_STR})
list (LENGTH COMPILE_FLAGS_LIST NUMBER_OF_COMPILE_FLAGS)
set (CURRENT_FLAG_INDEX 0)
message ("")
message ("Building IPPL with:")
while (${CURRENT_FLAG_INDEX} LESS ${NUMBER_OF_COMPILE_FLAGS})
set (FLAGS_PRETTY_PRINT "")
list (GET COMPILE_FLAGS_LIST ${CURRENT_FLAG_INDEX} CURRENT_FLAG)
string (LENGTH ${CURRENT_FLAG} LENGTH_INCL_NEXT)
while (${LENGTH_INCL_NEXT} LESS ${PRETTY_PRINT_WIDTH})
set (FLAGS_PRETTY_PRINT
"${FLAGS_PRETTY_PRINT} ${CURRENT_FLAG}")
math (EXPR CURRENT_FLAG_INDEX "(${CURRENT_FLAG_INDEX} + 1)")
if (${CURRENT_FLAG_INDEX} EQUAL ${NUMBER_OF_COMPILE_FLAGS})
set (LENGTH_INCL_NEXT ${PRETTY_PRINT_WIDTH})
else (${CURRENT_FLAG_INDEX} EQUAL ${NUMBER_OF_COMPILE_FLAGS})
list (GET COMPILE_FLAGS_LIST ${CURRENT_FLAG_INDEX} CURRENT_FLAG)
if (CURRENT_FLAG)
string (LENGTH ${CURRENT_FLAG} LENGTH_CURRENT_FLAG)
math (EXPR LENGTH_INCL_NEXT "${LENGTH_INCL_NEXT} + 1 + ${LENGTH_CURRENT_FLAG}")
endif ()
endif ()
endwhile ()
string (STRIP ${FLAGS_PRETTY_PRINT} FLAGS_PRETTY_PRINT)
message (STATUS "${FLAGS_PRETTY_PRINT}")
endwhile ()
message ("")
endif ()
set (IPPL_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
macro (add_ippl_sources)
file (RELATIVE_PATH _relPath "${IPPL_SRC_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
......@@ -147,6 +106,7 @@ install (TARGETS ippl DESTINATION lib)
install (FILES ${IPPL_BASEDIR_HDRS} DESTINATION include)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode:cmake
# cmake-tab-width: 4
......
SET (_SRCS
set (_SRCS
DataSource.cpp
DataConnect.cpp
DataConnectCreator.cpp
......@@ -7,7 +7,7 @@ SET (_SRCS
PtclBaseDataSource.cpp
)
SET (_HDRS
set (_HDRS
DataConnectCreator.h
DataConnect.h
DataSource.h
......@@ -31,11 +31,19 @@ SET (_HDRS
StringDataSource.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/DataSource)
install (FILES ${_HDRS} DESTINATION include/DataSource)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
)
set (_SRCS
)
SET (_HDRS
DomainMap.hpp
DomainMap.h
)
set (_HDRS
DomainMap.hpp
DomainMap.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/DomainMap)
install (FILES ${_HDRS} DESTINATION include/DomainMap)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
set (_SRCS
fftpack.cpp
)
fftpack.cpp
)
set (_HDRS
FFTBase.hpp
FFTBase.h
FFT.hpp
FFT.h
fftpack_FFT.h
)
FFTBase.hpp
FFTBase.h
FFT.hpp
FFT.h
fftpack_FFT.h
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
${CMAKE_CURRENT_SOURCE_DIR}
)
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
#install (FILES ${_HDRS} DESTINATION include/FFT)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
)
set (_SRCS
)
SET (_HDRS
Assign.hpp
AssignDefs.h
AssignGeneralBF.hpp
AssignGeneralIBF.hpp
Assign.h
AssignTags.h
BareField.hpp
BareField.h
BareFieldIterator.h
BCond.hpp
BCond.h
BrickExpression.hpp
BrickExpression.h
BrickIterator.hpp
BrickIterator.h
CompressedBrickIterator.hpp
CompressedBrickIterator.h
Field.hpp
Field.h
FieldLoc.h
FieldSpec.h
GuardCellSizes.hpp
GuardCellSizes.h
IndexedBareField.hpp
IndexedBareField.h
IndexedField.h
LField.hpp
LField.h
ReductionLoc.hpp
ReductionLoc.h
)
set (_HDRS
Assign.hpp
AssignDefs.h
AssignGeneralBF.hpp
AssignGeneralIBF.hpp
Assign.h
AssignTags.h
BareField.hpp
BareField.h
BareFieldIterator.h
BCond.hpp
BCond.h
BrickExpression.hpp
BrickExpression.h
BrickIterator.hpp
BrickIterator.h
CompressedBrickIterator.hpp
CompressedBrickIterator.h
Field.hpp
Field.h
FieldLoc.h
FieldSpec.h
GuardCellSizes.hpp
GuardCellSizes.h
IndexedBareField.hpp
IndexedBareField.h
IndexedField.h
LField.hpp
LField.h
ReductionLoc.hpp
ReductionLoc.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Field)
install (FILES ${_HDRS} DESTINATION include/Field)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
set (_SRCS
FieldLayoutUser.cpp
MultiBalancer.cpp
VRB.cpp
)
SET (_HDRS
set (_HDRS
BinaryBalancer.hpp
BinaryBalancer.h
CenteredFieldLayout.hpp
......@@ -21,11 +21,19 @@ SET (_HDRS
VRB.h
)
INCLUDE_DIRECTORIES (
include_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/FieldLayout)
install (FILES ${_HDRS} DESTINATION include/FieldLayout)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
......@@ -38,7 +38,7 @@ std::ostream& operator<<(std::ostream&, const Vnode<Dim>&);
//----------------------------------------------------------------------
template<unsigned Dim>
class Vnode : public RefCounted, public Pooled< Vnode<Dim> >
class Vnode : public RefCounted //, public Pooled< Vnode<Dim> >
{
private:
......
SET (_SRCS
Index.cpp
)
set (_SRCS
Index.cpp
)
SET (_HDRS
IndexedSIndex.h
Index.h
IndexInlines.h
LSIndex.h
NDIndex.h
NDIndexInlines.h
SIndexAssign.hpp
SIndexAssign.h
SIndex.hpp
SIndex.h
SOffset.h
)
set (_HDRS
IndexedSIndex.h
Index.h
IndexInlines.h
LSIndex.h
NDIndex.h
NDIndexInlines.h
SIndexAssign.hpp
SIndexAssign.h
SIndex.hpp
SIndex.h
SOffset.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Index)
install (FILES ${_HDRS} DESTINATION include/Index)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
Centering.cpp
)
set (_SRCS
Centering.cpp
)
SET (_HDRS
CartesianCentering.hpp
CartesianCentering.h
Cartesian.hpp
Cartesian.h
CartesianStencilSetup.h
Centering.h
Mesh.hpp
Mesh.h
UniformCartesian.hpp
UniformCartesian.h
)
set (_HDRS
CartesianCentering.hpp
CartesianCentering.h
Cartesian.hpp
Cartesian.h
CartesianStencilSetup.h
Centering.h
Mesh.hpp
Mesh.h
UniformCartesian.hpp
UniformCartesian.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Meshes)
install (FILES ${_HDRS} DESTINATION include/Meshes)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
CRC.cpp
Communicate.cpp
CommCreator.cpp
CommMPI.cpp
MessageFunctions.cpp
Formatter.cpp
)
set (_SRCS
CRC.cpp
Communicate.cpp
CommCreator.cpp
CommMPI.cpp
MessageFunctions.cpp
Formatter.cpp
)
SET (_HDRS
CommCreator.h
CommMPI.h
CommPM.h
CommSHMEMPI.h
Communicate.h
CRC.h
DataTypes.h
Formatter.h
GlobalComm.hpp
GlobalComm.h
Message.hpp
Message.h
Operations.h
TagMaker.h
Tags.h
)
set (_HDRS
CommCreator.h
CommMPI.h
CommPM.h
CommSHMEMPI.h
Communicate.h
CRC.h
DataTypes.h
Formatter.h
GlobalComm.hpp
GlobalComm.h
Message.hpp
Message.h
Operations.h
TagMaker.h
Tags.h
)
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_SOURCE_DIR}
)
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/Message)
install (FILES ${_HDRS} DESTINATION include/Message)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
set (_SRCS
)
SET (_HDRS
set (_HDRS
IpplExpressions.h
IpplTypeComputations.h
PETE.h
TypeComputations.h
)
INCLUDE_DIRECTORIES (
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
ADD_IPPL_SOURCES (${_SRCS})
ADD_IPPL_HEADERS (${_HDRS})
add_ippl_sources (${_SRCS})
add_ippl_headers (${_HDRS})
INSTALL (FILES ${_HDRS} DESTINATION include/PETE)
install (FILES ${_HDRS} DESTINATION include/PETE)
# vi: set et ts=4 sw=4 sts=4:
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End:
SET (_SRCS
)
SET (_HDRS
BoxParticleCachingPolicy.h
CellParticleCachingPolicy.h
GenArrayParticle.h
GenParticle.h
IntCIC.h
Interpolator.h
IntNGP.h
IntTSC.h
IntSUDS.h
NoParticleCachingPolicy.h
PairBuilder/BasicPairBuilder.h
PairBuilder/HashPairBuilder.h
PairBuilder/HashPairBuilderPeriodic.h
PairBuilder/PairConditions.h
PairBuilder/SortingPairBuilder.h
ParticleAttribBase.h
ParticleAttrib.hpp
ParticleAttribElem.h
ParticleAttrib.h
ParticleBalancer.hpp
ParticleBalancer.h
IpplParticleBase.hpp
IpplParticleBase.h
ParticleBConds.h
ParticleCashedLayout.hpp
ParticleCashedLayout.h
ParticleInteractAttrib.hpp
ParticleInteractAttrib.h
ParticleInteractLayout.hpp
ParticleInteractLayout.h