Commit d11f0b43 authored by COULAUD Olivier's avatar COULAUD Olivier

update file

parent e525b7ac
...@@ -13,40 +13,83 @@ INCLUDE_DIRECTORIES( ...@@ -13,40 +13,83 @@ INCLUDE_DIRECTORIES(
${SCALFMM_BINARY_DIR}/Src ${SCALFMM_BINARY_DIR}/Src
${SCALFMM_SOURCE_DIR}/Src ${SCALFMM_SOURCE_DIR}/Src
${SCALFMM_SOURCE_DIR}/Contribs ${SCALFMM_SOURCE_DIR}/Contribs
${SCALFMM_SOURCE_DIR}
${SCALFMM_INCLUDES} ${SCALFMM_INCLUDES}
) )
set(GENERIC_SOURCE_FILES changeFmaFormat compare2Files generateDistributions statisticsOnOctree # Find all code files
DirectComputation CutOffAlgorithm RotationFMM compareAllPoissonKernels) file(
if(SCALFMM_USE_BLAS) GLOB_RECURSE
set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} ChebyshevInterpolationFMM ChebyshevInterpolationAdaptiveFMM ) source_tests_files
endif(SCALFMM_USE_BLAS) ./*.cpp
)
if(SCALFMM_USE_FFT) # Add execs - 1 cpp = 1 exec
set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} UniformInterpolationFMM LagrangeInterpolationAdaptiveFMM ) foreach(exec ${source_tests_files})
else() get_filename_component(
message(STATUS " &&&&&&&&&&&&&&&&&&&& SCALFMM_USE_FFT ${SCALFMM_USE_FFT}") execname ${exec}
endif(SCALFMM_USE_FFT) NAME_WE
)
if(SCALFMM_USE_MPI)
set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} RotationMPIFMM ) set(compile_exec "TRUE")
if(SCALFMM_USE_BLAS)
set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} MPIChebyshevInterpolationFMM ChebyshevInterpolationMPIFMMSplit ChebyshevInterpolationMPIFMM ) foreach(fuse_key ${FUSE_LIST})
endif(SCALFMM_USE_BLAS) file(STRINGS "${exec}" lines_fuse REGEX "@FUSE_${fuse_key}")
if(lines_fuse)
if(SCALFMM_USE_FFT) if( NOT SCALFMM_USE_${fuse_key} )
set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} MPIUniformInterpolationFMM) MESSAGE( STATUS "This needs ${fuse_key} = ${exec}" )
endif(SCALFMM_USE_FFT) set(compile_exec "FALSE")
endif()
endif() endif()
# endforeach()
#MESSAGE(WARNIG "GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES}")
# # Dependency are OK
# if( compile_exec )
# add_executable(
foreach(exec ${GENERIC_SOURCE_FILES}) ${execname}
add_executable(${exec} ${exec}.cpp) ${exec}
SET_TARGET_PROPERTIES(${exec} PROPERTIES ENABLE_EXPORTS TRUE) )
target_link_libraries(${exec} ${scalfmm_lib} ${SCALFMM_LIBRARIES} ) SET_TARGET_PROPERTIES(${execname} PROPERTIES ENABLE_EXPORTS TRUE)
install( TARGETS ${exec} DESTINATION bin ) target_link_libraries(
${execname}
${scalfmm_lib}
${SCALFMM_LIBRARIES}
)
install( TARGETS ${execname} DESTINATION bin )
endif()
endforeach(exec) endforeach(exec)
#set(GENERIC_SOURCE_FILES changeFmaFormat compare2Files generateDistributions statisticsOnOctree
# DirectComputation CutOffAlgorithm RotationFMM compareAllPoissonKernels)
#if(SCALFMM_USE_BLAS)
# set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} ChebyshevInterpolationFMM ChebyshevInterpolationAdaptiveFMM )
#endif(SCALFMM_USE_BLAS)
#if(SCALFMM_USE_FFT)
# set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} UniformInterpolationFMM LagrangeInterpolationAdaptiveFMM )
#else()
# message(STATUS " &&&&&&&&&&&&&&&&&&&& SCALFMM_USE_FFT ${SCALFMM_USE_FFT}")
#endif(SCALFMM_USE_FFT)
#if(SCALFMM_USE_MPI)
# set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} RotationMPIFMM )
# if(SCALFMM_USE_BLAS)
# set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} MPIChebyshevInterpolationFMM ChebyshevInterpolationMPIFMMSplit ChebyshevInterpolationMPIFMM )
# endif(SCALFMM_USE_BLAS)
# if(SCALFMM_USE_FFT)
# set(GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES} MPIUniformInterpolationFMM)
# endif(SCALFMM_USE_FFT)
#endif()
##
##MESSAGE(WARNIG "GENERIC_SOURCE_FILES ${GENERIC_SOURCE_FILES}")
##
##
##
#foreach(exec ${GENERIC_SOURCE_FILES})
# add_executable(${exec} ${exec}.cpp)
# SET_TARGET_PROPERTIES(${exec} PROPERTIES ENABLE_EXPORTS TRUE)
# target_link_libraries(${exec} ${scalfmm_lib} ${SCALFMM_LIBRARIES} )
# install( TARGETS ${exec} DESTINATION bin )
#endforeach(exec)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment