Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 493f1f7e authored by hhakim's avatar hhakim
Browse files

Add the function pyfaust/matfaust.version().

It closes issue #41.
parent e7870cfd
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ if(BUILD_DOCUMENTATION)
string(CONCAT DOXYGEN_FILE_PATTERNS "*.cpp *.hpp *.h *.cu *.hu")
endif()
if(BUILD_WRAPPER_MATLAB)
string(CONCAT DOXYGEN_FILE_PATTERNS ${DOXYGEN_FILE_PATTERNS} " Faust.m StoppingCriterion.m ConstraintGeneric.m ConstraintMat.m ConstraintReal.m ConstraintInt.m ConstraintName.m ParamsFact.m ParamsHierarchicalFact.m ParamsPalm4MSA.m FaustFactory.m hadamard.m quickstart.m fft.m bsl.m runtimecmp.m runall.m")
string(CONCAT DOXYGEN_FILE_PATTERNS ${DOXYGEN_FILE_PATTERNS} " Faust.m StoppingCriterion.m ConstraintGeneric.m ConstraintMat.m ConstraintReal.m ConstraintInt.m ConstraintName.m ParamsFact.m ParamsHierarchicalFact.m ParamsPalm4MSA.m FaustFactory.m hadamard.m quickstart.m fft.m bsl.m runtimecmp.m runall.m version.m")
endif()
if(BUILD_WRAPPER_PYTHON)
string(CONCAT DOXYGEN_FILE_PATTERNS ${DOXYGEN_FILE_PATTERNS} " __init__.py factparams.py demo.py")
......
%====================================
% Returns the FAµST package version.
%===
%
%====================================
function ver = version()
ver = '@CPACK_PACKAGE_VERSION@';
end
......@@ -61,7 +61,7 @@ foreach(MATFAUST_FILE IN LISTS FAUST_MATLAB_MATFAUST_FILE_LIST)
else()
message(STATUS "matfaust function file: " ${MATFAUST_FILE})
# just copy the .m
configure_file(${FAUST_MATLAB_NAMESPACE_SRC_DIR}/${MATFAUST_FILE} ${FAUST_MATLAB_NAMESPACE_BIN_DIR}/${MATFAUST_FILE} COPYONLY)
configure_file(${FAUST_MATLAB_NAMESPACE_SRC_DIR}/${MATFAUST_FILE} ${FAUST_MATLAB_NAMESPACE_BIN_DIR}/${MATFAUST_FILE} @ONLY)
endif()
endforeach()
......
......@@ -1567,3 +1567,8 @@ class FaustFactory:
pyfaust.Faust.__div__ = pyfaust.Faust.__truediv__
def version():
"""Returns the FAµST package version.
"""
return "@CPACK_PACKAGE_VERSION@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment