Merge from rc2.0
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2713 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
71864c2a6e
commit
409a1b21b8
1731 changed files with 104909 additions and 64375 deletions
45
trunk/cmake/Target.cmake
Normal file
45
trunk/cmake/Target.cmake
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
######################################################################################
|
||||
### Mrproper will delete all files and folders in build directory
|
||||
######################################################################################
|
||||
|
||||
if(UNIX)
|
||||
add_custom_target(mrproper COMMAND cd ${CMAKE_BINARY_DIR} && rm -rf *)
|
||||
endif(UNIX)
|
||||
|
||||
######################################################################################
|
||||
### Doc-all enable to build all documentations in one target
|
||||
######################################################################################
|
||||
|
||||
if(DOXYGEN_FOUND AND DOXYGEN_EXECUTABLE)
|
||||
add_custom_target(doc
|
||||
COMMAND make doc-eo
|
||||
COMMAND make doc-mo
|
||||
COMMAND make doc-moeo
|
||||
)
|
||||
endif(DOXYGEN_FOUND AND DOXYGEN_EXECUTABLE)
|
||||
|
||||
######################################################################################
|
||||
### Perform covering test if lcov is found
|
||||
######################################################################################
|
||||
|
||||
if(PROFILING)
|
||||
find_program(LCOV
|
||||
NAMES lcov
|
||||
PATHS
|
||||
"/usr/local/bin /usr/bin [HKEY_LOCAL_MACHINE\\SOFTWARE\\Rational Software\\Purify\\Setup;InstallFolder] [HKEY_CURRENT_USER\\Software]"
|
||||
DOC "Path to the memory checking command, used for memory error detection.")
|
||||
if(LCOV)
|
||||
add_custom_target(coverage
|
||||
COMMAND make
|
||||
COMMAND ctest
|
||||
COMMAND lcov -d . -c -o output.info
|
||||
COMMAND lcov -r output.info '*/tutorial*' -o output.info
|
||||
COMMAND lcov -r output.info '/usr*' -o output.info
|
||||
COMMAND lcov -r output.info '*/test*' -o output.info
|
||||
COMMAND genhtml output.info -o coverage/ --highlight --legend
|
||||
)
|
||||
else(LCOV)
|
||||
message(STATUS "Could NOT find Lcov")
|
||||
endif(LCOV)
|
||||
endif(PROFILING)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue