.../
... + -- EO
| |
| |
+-- src ----- + -- EDO
| |
| |
+-- test + -- MO
| |
| |
+-- tutorial + -- MOEO
| |
| |
+-- doc + -- SMP
| |
| |
... + -- EOMPI
|
|
+ -- EOSERIAL
Question for current maintainers: ./README: new release?
Also:
* Moving out eompi & eoserial modules (issue #2).
* Correction of the errors when executing "make doc" command.
* Adding a solution for the conflicting headers problem (see the two CMake Cache
Values: PROJECT_TAG & PROJECT_HRS_INSTALL_SUBPATH) (issue #1)
* Header inclusions:
** src: changing absolute paths into relative paths ('#include <...>' -> '#include "..."')
** test, tutorial: changing relative paths into absolute paths ('#include "..."' -> '#include <...>')
* Moving out some scripts from EDO -> to the root
* Add a new script for compilation and installation (see build_gcc_linux_install)
* Compilation with uBLAS library or EDO module: now ok
* Minor modifications on README & INSTALL files
* Comment eompi failed tests with no end
*** TODO: CPack (debian (DEB) & RedHat (RPM) packages) (issues #6 & #7) ***
66 lines
2.6 KiB
CMake
Executable file
66 lines
2.6 KiB
CMake
Executable file
######################################################################################
|
|
### cleanall will delete all files and folders in build directory
|
|
######################################################################################
|
|
|
|
if(UNIX)
|
|
add_custom_target(cleanall 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)
|
|
if(NOT EO_ONLY)
|
|
if(EDO)
|
|
add_dependencies(doc
|
|
COMMAND make doc-edo)
|
|
endif(EDO)
|
|
if(MO)
|
|
add_dependencies(doc
|
|
COMMAND make doc-mo)
|
|
endif(MO)
|
|
if(MOEO)
|
|
add_dependencies(doc
|
|
COMMAND make doc-moeo)
|
|
endif(MOEO)
|
|
if(SMP)
|
|
add_dependencies(doc
|
|
COMMAND make doc-smp)
|
|
endif(SMP)
|
|
# no independent documentations for eompi, eoserial modules for the moment
|
|
# maybe go check the eo module documentation
|
|
endif(NOT EO_ONLY)
|
|
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 lcov -r output.info '*/eo*' -o output.info
|
|
COMMAND lcov -r output.info '*/mo*' -o output.info
|
|
COMMAND lcov -r output.info '*/moeo*' -o output.info
|
|
COMMAND lcov -r output.info '*/problems*' -o output.info
|
|
COMMAND genhtml output.info -o coverage/ --highlight --legend
|
|
)
|
|
else(LCOV)
|
|
message(STATUS "Could NOT find Lcov")
|
|
endif(LCOV)
|
|
endif(PROFILING)
|
|
|