squeeze out version information of the used libs.

This commit is contained in:
suter_a 2022-11-09 09:15:30 +01:00
parent bface6bf1e
commit 1e51d2a007
2 changed files with 17 additions and 13 deletions

View File

@ -64,6 +64,9 @@ endif (${LONG_DOUBLE} GREATER ${DOUBLE})
#--- add path to my own find modules and other stuff #--- add path to my own find modules and other stuff
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
#--- check for pkg-config -----------------------------------------------------
find_package(PkgConfig REQUIRED)
#--- check for git ------------------------------------------------------------ #--- check for git ------------------------------------------------------------
find_package(Git REQUIRED) find_package(Git REQUIRED)
@ -239,14 +242,14 @@ message("")
message(" Requirements:") message(" Requirements:")
message(" -------------") message(" -------------")
message("") message("")
message(" FFTW3 found in ${FFTW3_INCLUDE}") message(" FFTW3 found in ${FFTW3_INCLUDE}, Version: ${FFTW_VERSION}")
message(" GSL found in ${GSL_INCLUDE_DIRS}") message(" GSL found in ${GSL_INCLUDE_DIRS}, Version: ${GSL_VERSION}")
message(" BOOST found in ${Boost_INCLUDE_DIRS}") message(" BOOST found in ${Boost_INCLUDE_DIRS}, Version: ${Boost_VERSION}")
message(" LibXML2 found in ${LIBXML2_INCLUDE_DIR}") message(" LibXML2 found in ${LIBXML2_INCLUDE_DIR}, Version: ${LIBXML2_VERSION_STRING}")
message(" ROOT found in ${ROOT_INCLUDE_DIRS}") message(" ROOT found in ${ROOT_INCLUDE_DIRS}, Version: ${ROOT_VERSION}")
if (OpenMP_FOUND) if (OpenMP_FOUND)
if (OpenMP_CXX_VERSION) if (OpenMP_CXX_VERSION)
message(" OpenMP found (version ${OpenMP_CXX_VERSION})") message(" OpenMP found Version: ${OpenMP_CXX_VERSION}")
else (OpenMP_CXX_VERSION) else (OpenMP_CXX_VERSION)
message(" OpenMP found") message(" OpenMP found")
endif (OpenMP_CXX_VERSION) endif (OpenMP_CXX_VERSION)
@ -255,23 +258,23 @@ endif (OpenMP_FOUND)
if (nexus) if (nexus)
message("") message("")
message(" HDF4 found in ${HDF4_INCLUDE_DIRS}") message(" HDF4 found in ${HDF4_INCLUDE_DIRS}")
message(" HDF5 found in ${HDF5_INCLUDE_DIRS}") message(" HDF5 found in ${HDF5_INCLUDE_DIRS}, Version: ${HDF5_VERSION}")
message(" NeXus found in ${NEXUS_INCLUDE_DIR}") message(" NeXus found in ${NEXUS_INCLUDE_DIR}, Version: ${NEXUS_VERSION_STRING}")
endif (nexus) endif (nexus)
message("") message("")
if (qt_based_tools) if (qt_based_tools)
if (Qt6Core_FOUND) if (Qt6Core_FOUND)
message(" Qt found in ${Qt6Core_INCLUDE_DIRS} (Version: ${Qt6Core_VERSION})") message(" Qt found in ${Qt6Core_INCLUDE_DIRS}, Version: ${Qt6Core_VERSION}")
else (Qt6Core_FOUND) else (Qt6Core_FOUND)
if (Qt5Core_FOUND) if (Qt5Core_FOUND)
message(" Qt found in ${Qt5Core_INCLUDE_DIRS} (Version: ${Qt5Core_VERSION})") message(" Qt found in ${Qt5Core_INCLUDE_DIRS}, Version: ${Qt5Core_VERSION}")
else (Qt5Core_FOUND) else (Qt5Core_FOUND)
if (Qt4_FOUND) if (Qt4_FOUND)
message(" Qt found (Version: ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH})") message(" Qt found Version: ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}")
else (Qt4_FOUND) else (Qt4_FOUND)
if (QT_FOUND) if (QT_FOUND)
message(" Qt found (Version: ${QT_VERSION})") message(" Qt found Version: ${QT_VERSION}")
endif (QT_FOUND) endif (QT_FOUND)
endif (Qt4_FOUND) endif (Qt4_FOUND)
endif (Qt5Core_FOUND) endif (Qt5Core_FOUND)

View File

@ -213,7 +213,8 @@ if (FFTW3Q_THREAD_FOUND)
add_imported_library("FFTW3Q_THREAD" "${FFTW3Q_THREAD_LIBRARY}" "${FFTW3_INCLUDE}") add_imported_library("FFTW3Q_THREAD" "${FFTW3Q_THREAD_LIBRARY}" "${FFTW3_INCLUDE}")
endif() endif()
pkg_check_modules(FFTW fftw3 QUIET)
if (FFTW3_FOUND) if (FFTW3_FOUND)
message("-- Found FFTW3: ${FFTW3_INCLUDE}") message("-- Found FFTW3: ${FFTW3_INCLUDE}, Version: ${FFTW_VERSION}")
endif (FFTW3_FOUND) endif (FFTW3_FOUND)