Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
d11f0b43
Commit
d11f0b43
authored
Jun 15, 2018
by
COULAUD Olivier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update file
parent
e525b7ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
33 deletions
+76
-33
Examples/CMakeLists.txt
Examples/CMakeLists.txt
+76
-33
No files found.
Examples/CMakeLists.txt
View file @
d11f0b43
...
@@ -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)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment