Skip to content
Snippets Groups Projects
Commit f53a9e7c authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

Find<..>.cmake for libcerf, kww, lmfit, replacing FindFridalibs

parent bb0d90fb
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,9 @@ find_package(Readline REQUIRED)
find_package(GSL REQUIRED)
find_package(FFTW REQUIRED)
find_package(YamlCpp05 REQUIRED)
find_package(Fridalibs REQUIRED)
find_package(KWW REQUIRED)
find_package(Cerf REQUIRED)
find_package(LMFit REQUIRED)
find_package(Gnuplot REQUIRED)
#--- Including macros ---
......
# Searches libcerf, and defines Cerf_FOUND, Cerf_INCLUDE_DIR, Cerf_LIBRARIES.
# Should typically be called through 'find_package(Cerf REQUIRED)'.
find_path(Cerf_INCLUDE_DIR cerf.h)
find_library(Cerf_LIBRARIES NAMES cerf Cerf)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Cerf DEFAULT_MSG Cerf_LIBRARIES Cerf_INCLUDE_DIR)
include(AssertLibraryFunction)
assert_library_function(Cerf cerf "")
assert_library_function(Cerf dawson "")
assert_library_function(Cerf voigt "")
mark_as_advanced(Cerf_INCLUDE_DIR Cerf_LIBRARIES)
message( "FindFridalibs.cmake begin" )
function(find_kww)
find_path(LIBKWW_INCLUDES kww.h )
find_library(LIBKWW_LIBS NAMES kww )
find_package_handle_standard_args(libkww DEFAULT_MSG
LIBKWW_LIBS LIBKWW_INCLUDES)
endfunction(find_kww)
function(find_cerf)
find_path(LIBCERF_INCLUDES cerf.h )
find_library(LIBCERF_LIBS NAMES cerf )
find_package_handle_standard_args(libcerf DEFAULT_MSG
LIBCERF_LIBS LIBCERF_INCLUDES)
endfunction(find_cerf)
function(find_lmfit)
find_path(LIBLMFIT_INCLUDES lmmin.h)
find_library(LIBLMFIT_LIBS NAMES lmfit )
find_package_handle_standard_args(liblmfit DEFAULT_MSG
LIBLMFIT_LIBS LIBLMFIT_INCLUDES)
endfunction(find_lmfit)
find_package(PkgConfig)
include(FindPackageHandleStandardArgs)
find_kww()
find_cerf()
find_lmfit()
message( "FindFridalibs.cmake end" )
# Searches libkww, and defines KWW_FOUND, KWW_INCLUDE_DIR, KWW_LIBRARIES.
# Should typically be called through 'find_package(KWW REQUIRED)'.
find_path(KWW_INCLUDE_DIR kww.h)
find_library(KWW_LIBRARIES NAMES kww KWW)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(KWW DEFAULT_MSG KWW_LIBRARIES KWW_INCLUDE_DIR)
include(AssertLibraryFunction)
assert_library_function(KWW kwwc "")
assert_library_function(KWW kwws "")
assert_library_function(KWW kwwp "")
mark_as_advanced(KWW_INCLUDE_DIR KWW_LIBRARIES)
# Searches liblmfit, and defines LMFit_FOUND, LMFit_INCLUDE_DIR, LMFit_LIBRARIES.
# Should typically be called through 'find_package(LMFit REQUIRED)'.
find_path(LMFit_INCLUDE_DIR lmmin.h)
find_library(LMFit_LIBRARIES NAMES lmfit LMFit)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LMFit DEFAULT_MSG LMFit_LIBRARIES LMFit_INCLUDE_DIR)
include(AssertLibraryFunction)
assert_library_function(LMFit lmmin "")
mark_as_advanced(LMFit_INCLUDE_DIR LMFit_LIBRARIES)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment