INCLUDE(setup_compiler_flags)
-# ####################
-# # FAT NOTE: #
-# ####################
+###########################################################################
+#
+# FAT NOTE:
#
# To keep things clean, only the following cmake variables should be
# altered in the platform checks and features configuration
# for setting necessary compiler flags, e.g. -std=c++11 (if
# available).
#
- ADD_CUSTOM_TARGET(deal_ii_target_dependencies)
+ADD_CUSTOM_TARGET(deal_ii_target_dependencies)
# Used as a dummy target for all the stuff that has to be done
# before the library can be compiled.
#
#
# For internal and external use:
#
- SET(deal_ii_external_libraries)
+SET( DEAL_II_EXTERNAL_LIBRARIES)
# Used to keep track of external libraries, the deal.II library and
# user programs have to be linked against.
#
# Used to keep track of external include dirs, necessary for the
# compilation of user programs.
#
+###########################################################################
#
INCLUDE_DIRECTORIES(${MPI_CXX_INCLUDE_PATH})
ADD_FLAGS(CMAKE_CXX_FLAGS "${MPI_CXX_COMPILE_FLAGS}")
ADD_FLAGS(CMAKE_SHARED_LINKER_FLAGS "${MPI_CXX_LINK_FLAGS}")
- LIST(APPEND deal_ii_external_libraries ${MPI_CXX_LIBRARIES})
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${MPI_CXX_LIBRARIES})
SET(DEAL_II_COMPILER_SUPPORTS_MPI TRUE)
IF (CMAKE_BUILD_TYPE MATCHES "Debug")
IF(TBB_DEBUG_FOUND)
- LIST(APPEND deal_ii_external_libraries ${TBB_DEBUG_LIBRARY})
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${TBB_DEBUG_LIBRARY})
ELSE()
MESSAGE(WARNING "\n"
"deal.II was configured with CMAKE_BUILD_TYPE=Debug but no debug tbb\n"
"library was found. The regular tbb library will be used instead.\n\n"
)
- LIST(APPEND deal_ii_external_libraries ${TBB_LIBRARY})
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${TBB_LIBRARY})
ENDIF()
ELSE()
- LIST(APPEND deal_ii_external_libraries ${TBB_LIBRARY})
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${TBB_LIBRARY})
ENDIF()
# Setup threading and if successfull return TRUE:
MACRO(FEATURE_ARPACK_CONFIGURE_EXTERNAL var)
INCLUDE_DIRECTORIES(${ARPACK_INCLUDE_DIR})
- LIST(APPEND deal_ii_external_libraries ${ARPACK_LIBRARY})
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${ARPACK_LIBRARY})
SET(DEAL_II_USE_ARPACK TRUE)
MACRO(FEATURE_BLAS_CONFIGURE_EXTERNAL var)
ADD_FLAGS(CMAKE_SHARED_LINKER_FLAGS "${BLAS_LINKER_FLAGS}")
- LIST(APPEND deal_ii_external_libraries
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
${BLAS_LIBRARIES}
)
INCLUDE_DIRECTORIES (${Boost_INCLUDE_DIR})
IF (CMAKE_BUILD_TYPE MATCHES "Debug")
- LIST(APPEND deal_ii_external_libraries
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
${Boost_THREAD_LIBRARY_DEBUG} ${Boost_SERIALIZATION_LIBRARY_DEBUG}
)
ELSE()
- LIST(APPEND deal_ii_external_libraries
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
${Boost_THREAD_LIBRARY} ${Boost_SERIALIZATION_LIBRARY}
)
ENDIF()
ADD_FLAGS(CMAKE_SHARED_LINKER_FLAGS "${LAPACK_LINKER_FLAGS}")
- LIST(APPEND deal_ii_external_libraries
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
${LAPACK_LIBRARIES}
)
MACRO(FEATURE_METIS_CONFIGURE_EXTERNAL var)
INCLUDE_DIRECTORIES(${METIS_INCLUDE_DIR})
- LIST(APPEND deal_ii_external_libraries ${METIS_LIBRARY})
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${METIS_LIBRARY})
SET(DEAL_II_USE_METIS TRUE)
MACRO(FEATURE_NETCDF_CONFIGURE_EXTERNAL var)
INCLUDE_DIRECTORIES(${NETCDF_INCLUDE_DIR})
- LIST(APPEND deal_ii_external_libraries ${NETCDF_LIBRARY})
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${NETCDF_LIBRARY})
SET(HAVE_LIBNETCDF TRUE)
SET(${var} TRUE)
IF (CMAKE_BUILD_TYPE MATCHES "Debug")
IF(P4EST_DEBUG_FOUND AND SC_DEBUG_FOUND)
- LIST(APPEND deal_ii_external_libraries
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
${P4EST_DEBUG_LIBRARY} ${SC_DEBUG_LIBRARY}
)
ELSE()
"sc libraries were found. The regular p4est and sc libraries will be used\n"
"instead.\n\n"
)
- LIST(APPEND deal_ii_external_libraries
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
${P4EST_LIBRARY} ${SC_LIBRARY}
)
ENDIF()
ELSE()
- LIST(APPEND deal_ii_external_libraries
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
${P4EST_LIBRARY} ${SC_LIBRARY}
)
ENDIF()
MACRO(FEATURE_TRILINOS_CONFIGURE_EXTERNAL var)
INCLUDE_DIRECTORIES(${TRILINOS_INCLUDE_DIR})
- LIST(APPEND deal_ii_external_libraries
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
${TRILINOS_LIBRARIES}
${Trilinos_TPL_LIBRARIES}
)
MACRO(FEATURE_UMFPACK_CONFIGURE_EXTERNAL var)
INCLUDE_DIRECTORIES(${UMFPACK_INCLUDE_DIR} ${AMD_INCLUDE_DIR})
- LIST(APPEND deal_ii_external_libraries
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
${UMFPACK_LIBRARY} ${AMD_LIBRARY}
)
MACRO(FEATURE_ZLIB_CONFIGURE_EXTERNAL var)
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS})
- LIST(APPEND deal_ii_external_libraries ${ZLIB_LIBRARIES})
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${ZLIB_LIBRARIES})
SET(HAVE_LIBZ TRUE)
SET(${var} TRUE)
ADD_EXECUTABLE(make_dependencies make_dependencies.cc)
ADD_EXECUTABLE(report_features report_features.cc)
- TARGET_LINK_LIBRARIES(report_features ${deal_ii_external_libraries})
+ TARGET_LINK_LIBRARIES(report_features ${DEAL_II_EXTERNAL_LIBRARIES})
ADD_DEPENDENCIES(report_features deal_ii_target_dependencies)