add FITPACK Fortran library
start developing of FITPACK C++ bindings mount_server.cpp: fix compilation error with GCC15
This commit is contained in:
29
cxx/fitpack/CMakeLists.txt
Normal file
29
cxx/fitpack/CMakeLists.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
set(func_name "")
|
||||
|
||||
file(GLOB src_files "*.f")
|
||||
|
||||
foreach(ff IN LISTS src_files)
|
||||
get_filename_component(sn ${ff} NAME_WE)
|
||||
list(APPEND func_name ${sn})
|
||||
endforeach()
|
||||
|
||||
# message(STATUS "${func_name}")
|
||||
|
||||
string(REPLACE ";" " " func_str "${func_name}")
|
||||
|
||||
# message(STATUS ${func_str})
|
||||
|
||||
enable_language(Fortran CXX)
|
||||
|
||||
include(FortranCInterface)
|
||||
FortranCInterface_HEADER(FortranCInterface.h
|
||||
MACRO_NAMESPACE "FC_"
|
||||
SYMBOL_NAMESPACE "fp_"
|
||||
SYMBOLS ${func_str}
|
||||
)
|
||||
|
||||
add_library(fitpack STATIC ${src_files} fitpack.h)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user