Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 661a48a6 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Try to cleanup the CMakeLists to split in separated files, but still not used yet

parent 5fb4b13a
No related branches found
No related tags found
No related merge requests found
# include(RulesPrecisions) include(RulesPrecisions)
# # reset variables
# set(generated_files "")
# set(generated_headers "")
# set(HEADERS ### reset variables
# z_spm.h set(generated_sources "")
# ) set(generated_headers "")
# ### generate the dsparse_cores headers for all possible precisions set(HEADERS
# precisions_rules_py(generated_headers z_spm.h
# "${HEADERS}" )
# PRECISIONS "p;s;d;c;z")
# add_custom_target(spm_headers ### Generate the headers in all precisions
# DEPENDS ${generated_headers} ) precisions_rules_py(generated_headers
"${HEADERS}"
PRECISIONS "p;s;d;c;z")
set(SOURCES
z_spm.c
z_spm_convert_to_csc.c
z_spm_convert_to_csr.c
z_spm_convert_to_ijv.c
z_spm_genrhs.c
z_spm_matrixvector.c
z_spm_norm.c
)
set(spm_headers
${generated_headers}
csc.h
)
### Generate the sources in all precisions
precisions_rules_py(generated_sources
"${SOURCES}"
PRECISIONS "p;s;d;c;z")
set(spm_sources
${generated_sources}
csc.c
csc_io.c
)
add_custom_target(spm_headers_tgt
DEPENDS ${spm_headers} )
set_source_files_properties(
spm/csc.c
PROPERTIES DEPENDS spm_headers_tgt
)
set(PASTIX_LIB_SRCS
${PASTIX_LIB_SRCS}
${spm_sources}
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment