diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-12-02 17:35:09 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-12-02 17:35:09 +0100 |
commit | e1404be9da9cda8e6f41e7cf207934f1914a3505 (patch) | |
tree | e86232547afa0b745298a22957d7b968fbcb8127 | |
parent | 1caf1fb2ea7b12ddb12004758ebf4d28871ec7cd (diff) |
CMake generates how_to_cite_gudhi.bib to auto update version
-rw-r--r-- | biblio/how_to_cite_gudhi.bib.in (renamed from biblio/how_to_cite_gudhi.bib) | 64 | ||||
-rw-r--r-- | src/cmake/modules/GUDHI_user_version_target.cmake | 13 |
2 files changed, 41 insertions, 36 deletions
diff --git a/biblio/how_to_cite_gudhi.bib b/biblio/how_to_cite_gudhi.bib.in index cba94d4d..23a37956 100644 --- a/biblio/how_to_cite_gudhi.bib +++ b/biblio/how_to_cite_gudhi.bib.in @@ -2,18 +2,18 @@ , title = "{GUDHI} User and Reference Manual" , author = "{The GUDHI Project}" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , year = 2019 -, url = "https://gudhi.inria.fr/doc/3.0.0/" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/" } @incollection{gudhi:FilteredComplexes , author = "Cl\'ement Maria" , title = "Filtered Complexes" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__simplex__tree.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__simplex__tree.html" , year = 2019 } @@ -21,9 +21,9 @@ , author = "Cl\'ement Maria" , title = "Persistent Cohomology" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__persistent__cohomology.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__persistent__cohomology.html" , year = 2019 } @@ -31,9 +31,9 @@ , author = "David Salinas" , title = "Contraction" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__contr.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__contr.html" , year = 2019 } @@ -41,9 +41,9 @@ , author = "David Salinas" , title = "Skeleton-Blocker" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__skbl.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__skbl.html" , year = 2019 } @@ -51,9 +51,9 @@ , author = "Vincent Rouvreau" , title = "Alpha complex" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__alpha__complex.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__alpha__complex.html" , year = 2019 } @@ -61,9 +61,9 @@ , author = "Pawel Dlotko" , title = "Cubical complex" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__cubical__complex.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__cubical__complex.html" , year = 2019 } @@ -71,9 +71,9 @@ , author = "Siargey Kachanovich" , title = "Witness complex" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__witness__complex.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__witness__complex.html" , year = 2019 } @@ -81,9 +81,9 @@ , author = "Cl\'ement Jamin, Siargey Kachanovich" , title = "Subsampling" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__subsampling.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__subsampling.html" , year = 2019 } @@ -91,9 +91,9 @@ , author = "Cl\'ement Jamin" , title = "Spatial searching" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__spatial__searching.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__spatial__searching.html" , year = 2019 } @@ -101,9 +101,9 @@ , author = "Cl\'ement Jamin" , title = "Tangential complex" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__tangential__complex.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__tangential__complex.html" , year = 2019 } @@ -111,9 +111,9 @@ , author = "Cl\'ement Maria, Pawel Dlotko, Vincent Rouvreau, Marc Glisse" , title = "Rips complex" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__rips__complex.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__rips__complex.html" , year = 2019 } @@ -121,9 +121,9 @@ , author = "Fran{{\c{c}}ois Godi" , title = "Bottleneck distance" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__bottleneck__distance.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__bottleneck__distance.html" , year = 2019 } @@ -131,9 +131,9 @@ , author = "Vincent Rouvreau" , title = "Cython interface" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/python/3.0.0/" +, url = "https://gudhi.inria.fr/python/@GUDHI_VERSION@/" , year = 2019 } @@ -141,9 +141,9 @@ , author = "Mathieu Carri\`ere" , title = "Cover complex" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group__cover__complex.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group__cover__complex.html" , year = 2019 } @@ -151,8 +151,8 @@ , author = "Pawel Dlotko" , title = "Persistence representations" , publisher = "{GUDHI Editorial Board}" -, edition = "{3.0.0}" +, edition = "{@GUDHI_VERSION@}" , booktitle = "{GUDHI} User and Reference Manual" -, url = "https://gudhi.inria.fr/doc/3.0.0/group___persistence__representations.html" +, url = "https://gudhi.inria.fr/doc/@GUDHI_VERSION@/group___persistence__representations.html" , year = 2019 } diff --git a/src/cmake/modules/GUDHI_user_version_target.cmake b/src/cmake/modules/GUDHI_user_version_target.cmake index f75fb19e..c179220c 100644 --- a/src/cmake/modules/GUDHI_user_version_target.cmake +++ b/src/cmake/modules/GUDHI_user_version_target.cmake @@ -18,12 +18,19 @@ foreach(GUDHI_MODULE ${GUDHI_MODULES_FULL_LIST}) set(GUDHI_DOXYGEN_IMAGE_PATH "${GUDHI_DOXYGEN_IMAGE_PATH} doc/${GUDHI_MODULE}/ \\ \n") endforeach(GUDHI_MODULE ${GUDHI_MODULES_FULL_LIST}) -# Generate setup.py file to cythonize Gudhi - This file must be named setup.py by convention +# Generate Doxyfile for Doxygen - cf. root CMakeLists.txt for explanation configure_file(${CMAKE_SOURCE_DIR}/src/Doxyfile.in "${CMAKE_CURRENT_BINARY_DIR}/src/Doxyfile" @ONLY) - add_custom_command(TARGET user_version PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/src/Doxyfile ${GUDHI_USER_VERSION_DIR}/Doxyfile) +# Generate bib files for Doxygen - cf. root CMakeLists.txt for explanation +configure_file(${CMAKE_SOURCE_DIR}/biblio/how_to_cite_gudhi.bib.in "${CMAKE_CURRENT_BINARY_DIR}/biblio/how_to_cite_gudhi.bib" @ONLY) +file(COPY "${CMAKE_SOURCE_DIR}/biblio/how_to_cite_cgal.bib" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/biblio/") +file(COPY "${CMAKE_SOURCE_DIR}/biblio/bibliography.bib" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/biblio/") +# Copy biblio directory for user version +add_custom_command(TARGET user_version PRE_BUILD COMMAND ${CMAKE_COMMAND} -E + copy_directory ${CMAKE_CURRENT_BINARY_DIR}/biblio ${GUDHI_USER_VERSION_DIR}/biblio) + add_custom_command(TARGET user_version PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/Conventions.txt ${GUDHI_USER_VERSION_DIR}/Conventions.txt) add_custom_command(TARGET user_version PRE_BUILD COMMAND ${CMAKE_COMMAND} -E @@ -40,8 +47,6 @@ add_custom_command(TARGET user_version PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/CMakeGUDHIVersion.txt ${GUDHI_USER_VERSION_DIR}/CMakeGUDHIVersion.txt) add_custom_command(TARGET user_version PRE_BUILD COMMAND ${CMAKE_COMMAND} -E - copy_directory ${CMAKE_SOURCE_DIR}/biblio ${GUDHI_USER_VERSION_DIR}/biblio) -add_custom_command(TARGET user_version PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/${GUDHI_PYTHON_PATH} ${GUDHI_USER_VERSION_DIR}/python) add_custom_command(TARGET user_version PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/data ${GUDHI_USER_VERSION_DIR}/data) |