Mentions légales du service

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

Add rules to globally defined the set of files going to the documentation, and...

Add rules to globally defined the set of files going to the documentation, and use it in bcsc and spm
parent cf18efac
No related branches found
No related tags found
No related merge requests found
include(RulesPrecisions)
include(AddSourceFiles)
### reset variables
set(generated_sources "")
set(generated_headers "")
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/drivers")
### Generate the headers in all precisions
set(HEADERS
z_spm.h
)
### Generate the headers in all precisions
precisions_rules_py(generated_headers
"${HEADERS}"
PRECISIONS "p;s;d;c;z")
set(spm_headers
${generated_headers}
spm.h
spm_drivers.h
)
add_custom_target(spm_headers_tgt
DEPENDS ${spm_headers} )
### Generate the sources in all precisions
set(SOURCES
z_spm.c
z_spm_2dense.c
......@@ -33,13 +45,6 @@ set(SOURCES
z_spm_print.c
)
set(spm_headers
${generated_headers}
spm.h
spm_drivers.h
)
### Generate the sources in all precisions
precisions_rules_py(generated_sources
"${SOURCES}"
PRECISIONS "p;s;d;c;z")
......@@ -61,9 +66,6 @@ set(spm_sources
drivers/readrsa.c
)
add_custom_target(spm_headers_tgt
DEPENDS ${spm_headers} )
add_library(pastix_spm
${spm_sources}
)
......@@ -80,3 +82,22 @@ endif (MPI_FOUND)
install(TARGETS pastix_spm
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
### Add documented files to the global property
add_documented_files(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
${generated_headers}
${generated_sources}
)
add_documented_files(
# Headers
spm.h
spm_drivers.h
# Source files
spm.c
spm_io.c
spm_integers.c
spm_dofs.c
spm_read_driver.c
)
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