CMakeLists.txt 4.2 KB
Newer Older
berenger-bramas's avatar
berenger-bramas committed
1
# Find all code files
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
set(source_tests_files
  GroupTree/compareDAGmapping.cpp 
  GroupTree/testBlockedAlgorithm.cpp
  GroupTree/testBlockedAlgorithmDyn.cpp
  GroupTree/testBlockedChebyshev.cpp 
  GroupTree/testBlockedMpiAlgorithm.cpp
  GroupTree/testBlockedMpiChebyshev.cpp
  GroupTree/testBlockedMpiInterpolation.cpp
  GroupTree/testBlockedMpiUniform.cpp
  GroupTree/testBlockedRotationCompare.cpp
  GroupTree/testBlockedRotation.cpp
  GroupTree/testBlockedRotationCuda.cpp
  GroupTree/testBlockedRotationMpi.cpp
  GroupTree/testBlockedRotationMpiCuda.cpp
  GroupTree/testBlockedSpeedOperators.cpp
  GroupTree/testBlockedTaylor.cpp
  GroupTree/testBlockedTree.cpp
  GroupTree/testBlockedUnifCudaBench.cpp 
  GroupTree/testBlockedUnifCuda.cpp
  GroupTree/testBlockedUniformBench.cpp
  GroupTree/testBlockedUniformCompare.cpp
  GroupTree/testBlockedUniform.cpp
  GroupTree/testBlockedWithCudaAlgorithm.cpp
  GroupTree/testBlockedWithOpenCLAlgorithm.cpp
  Kernels/DirectAlgorithm.cpp
  Kernels/testChebAlgorithm.cpp
  Kernels/testChebAlgorithmProc.cpp
  Kernels/testChebTensorialAlgorithm.cpp
  Kernels/testFlopsChebAlgorithm.cpp
  Kernels/testOmniPath.cpp
  Kernels/testP2PEfficency.cpp
  Kernels/testRotationAlgorithm.cpp
  Kernels/testRotationAlgorithmProc.cpp
  Kernels/testRotationPeriodicBench.cpp
  Kernels/testSmoothUnifAlgorithm.cpp
  Kernels/testSphericalAlgorithm.cpp
  Kernels/testSphericalBench.cpp
  Kernels/testSphericalBlasAlgorithm.cpp
  Kernels/testSphericalBlockBlasAlgorithm.cpp
  Kernels/testSphericalDlpolyAlgorithm.cpp
  Kernels/testSphericalGalaxyCsv.cpp
  Kernels/testSphericalProcAlgorithm.cpp
  Kernels/testSphericalRotationAlgorithm.cpp
  Kernels/testTaylor.cpp
  Kernels/testTaylorKernel.cpp
  Kernels/testTaylorSimple.cpp
  Kernels/testTsmAlgorithm.cpp
  Kernels/testTuneSphericalBlockBlas.cpp
  Kernels/testUnifAlgorithm.cpp
  Kernels/testUnifAlgorithmProc.cpp
  Kernels/testUnifTensorialAlgorithm.cpp
  Utils/testBlas.cpp
  Utils/testChebBinaryM2L.cpp
  Utils/testChebBinarySymM2L.cpp
  Utils/testChebInterpolator.cpp
  Utils/testChebInterpolatorExtendedBBox.cpp
  Utils/testChebM2Lprecomputation.cpp
  Utils/testChebOctree.cpp
  Utils/testChebSxUCBSy.cpp
  Utils/testChebSymmetries.cpp
  Utils/testChebTensorProduct.cpp
  Utils/testCompareIOTree.cpp
  Utils/testDebug.cpp
  Utils/testFastDiscreteConvolution.cpp
  Utils/testFFT.cpp
  Utils/testFmmAlgorithm.cpp
  Utils/testFmmAlgorithmOmp4.cpp
  Utils/testFmmAlgorithmPeriodic.cpp
  Utils/testFmmAlgorithmProc.cpp
  Utils/testFmmAlgorithmProcPeriodic.cpp
  Utils/testFmmAlgorithmProcRandom.cpp
  Utils/testFmmAlgorithmProcRotation.cpp
  Utils/testFmmAlgorithmProcTsm.cpp
  Utils/testFmmAlgorithmTsm.cpp
  Utils/testLapack.cpp
  Utils/testLapackQR.cpp
  Utils/testLoader.cpp
  Utils/testLoaderFMATsm.cpp
  Utils/testLoaderFMATsmCreate.cpp
  Utils/testMemStats.cpp
  Utils/testMpiCsvSaver.cpp
  Utils/testOctree.cpp
  Utils/testOctreeFuncteur.cpp
  Utils/testOctreeIter.cpp
  Utils/testOctreeParallelFuncteur.cpp
  Utils/testOctreePrintMorton.cpp
  Utils/testOctreeRearrange.cpp
  Utils/testOctreeRearrangePeriodic.cpp
  Utils/testOctreeRearrangeProc.cpp
  Utils/testOctreeRearrangeTsm.cpp
  Utils/testParameterNames.cpp
  Utils/testPartitionsMapping.cpp
  Utils/testStatsTree.cpp
  Utils/testTemplateExample.cpp
  Utils/testTic.cpp
  Utils/testTreeBuilderThread.cpp
  Utils/testTreeIO.cpp
  Utils/testUnifInterpolator.cpp
  Utils/testUnifTensorialInterpolator.cpp    
  )
102

berenger-bramas's avatar
berenger-bramas committed
103 104
# Add execs - 1 cpp = 1 exec
foreach(exec ${source_tests_files}) 
105 106
  set(compile_exec TRUE)
  get_filename_component( execname ${exec} NAME_WE )
107
	
108 109 110 111 112 113 114
  foreach(fuse_key ${FUSE_DEP_AVAILABLE})
    file(STRINGS "${exec}" lines_fuse REGEX "@FUSE_${fuse_key}")
    if(lines_fuse AND NOT ${fuse_key} IN_LIST FUSE_LIST)
      message( STATUS "This needs ${fuse_key} = ${exec}" )
      set(compile_exec FALSE)
    endif()
  endforeach()
115

116 117 118 119 120 121 122 123 124
  # Dependency are OK
  if( compile_exec )
    add_executable( ${execname} ${exec})
    list(APPEND SCALFMM_TESTS_TARGETS ${execname})
    set_target_properties(${execname} PROPERTIES ENABLE_EXPORTS TRUE
      RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BUILD_TYPE}
      )
    target_link_libraries( ${execname} ${CMAKE_PROJECT_NAME})
  endif()
berenger-bramas's avatar
berenger-bramas committed
125
endforeach(exec)
126 127 128

add_custom_target(scalfmm_tests ALL DEPENDS ${SCALFMM_TESTS_TARGETS})