set (CDMATH_VERSION_MAJOR 1)
set (CDMATH_VERSION_MINOR 0)
-include(ExternalProject)#For PETSc, MED and MEDCoupling
-set (CMAKE_BUILD_TYPE Release CACHE STRING "Installation mode")
-
# Project options
option (CDMATH_WITH_PETSC "Compile CDMATH with PETSc linking." ON)
option (CDMATH_WITH_DOCUMENTATION "Generate documentation with doxygen." ON)
add_custom_target (docCDMATH COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
if ( IS_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html)
- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION doc/cdmath-dev-doc)
+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION share/doc/cdmath-dev-doc)
endif( IS_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html)
endif(CDMATH_WITH_DOCUMENTATION)
#Debug option : todo = sort flags
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg -fprofile-arcs -ftest-coverage -lgcov")
-if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
+if (CMAKE_BUILD_TYPE STREQUAL "Debug")
SET(CMAKE_EXE_LINKER_FLAGS "-pg -fprofile-arcs -ftest-coverage -lgcov")
SET(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage")
endif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
# Configuration file
configure_file(
${PROJECT_SOURCE_DIR}/env_CDMATH.sh
- ${CMAKE_INSTALL_PREFIX}/env_CDMATH.sh
@ONLY
)
set (DOWNLOAD_MEDCOUPLING http://files.salome-platform.org/Salome/other/medCoupling-9.4.0.tar.gz
CACHE STRING "MEDCoupling tarball path/url" )
+set (CMAKE_BUILD_TYPE Release CACHE STRING "Installation mode")
+
list (APPEND CMAKE_MODULE_PATH "${SOLVERLAB_SOURCE_DIR}/cmake_files")
+
include(ExternalProject)#For PETSc, MED and MEDCoupling
+
######################################################
# Detection or compilation of PETSc+SLEPc+HDF5 #
######################################################
) #
add_custom_target (docCoreFlows COMMAND ${DOXYGEN_EXECUTABLE} #
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile) #
- install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION share/doc/CoreFlows OPTIONAL) #
- INSTALL(FILES ${CoreFlows_SOURCE_DIR}/Documentation/CoreFlows.pdf DESTINATION share/doc/CoreFlows OPTIONAL) #
+ install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION share/doc/coreflows-dev-doc OPTIONAL) #
+ INSTALL(FILES ${CoreFlows_SOURCE_DIR}/Documentation/CoreFlows.pdf DESTINATION share/doc OPTIONAL) #
endif () #
#
# ------------- --------------------------------------------------------------------------------------------#
#
configure_file(
${PROJECT_SOURCE_DIR}/env_CoreFlows.sh
- ${CMAKE_INSTALL_PREFIX}/env_CoreFlows.sh
@ONLY
)