From 83f507cbc17e5295df10e8c964d6f38f466b6cc3 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Fri, 2 Feb 2024 10:06:20 -0700 Subject: [PATCH] added CMake files --- wgrib2/gctpc/CMakeLists.txt | 2 + wgrib2/gctpc/source/CMakeLists.txt | 90 ++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 wgrib2/gctpc/CMakeLists.txt create mode 100644 wgrib2/gctpc/source/CMakeLists.txt diff --git a/wgrib2/gctpc/CMakeLists.txt b/wgrib2/gctpc/CMakeLists.txt new file mode 100644 index 00000000..3e9047ee --- /dev/null +++ b/wgrib2/gctpc/CMakeLists.txt @@ -0,0 +1,2 @@ + +add_subdirectory(source) diff --git a/wgrib2/gctpc/source/CMakeLists.txt b/wgrib2/gctpc/source/CMakeLists.txt new file mode 100644 index 00000000..a077a587 --- /dev/null +++ b/wgrib2/gctpc/source/CMakeLists.txt @@ -0,0 +1,90 @@ + +set(src + alberfor.c + alberinv.c + alconfor.c + alconinv.c + azimfor.c + aziminv.c + br_gctp.c + cproj.c + eqconfor.c + eqconinv.c + equifor.c + equiinv.c + for_init.c + gctp.c + gnomfor.c + gnominv.c + goodfor.c + goodinv.c + gvnspfor.c + gvnspinv.c + hamfor.c + haminv.c + imolwfor.c + imolwinv.c + inv_init.c + lamazfor.c + lamazinv.c + lamccfor.c + lamccinv.c + make.com + merfor.c + merinv.c + millfor.c + millinv.c + molwfor.c + molwinv.c + nad1927.dat + nad1983.dat + nad27sp + nad83sp + obleqfor.c + obleqinv.c + omerfor.c + omerinv.c + orthfor.c + orthinv.c + paksz.c + polyfor.c + polyinv.c + psfor.c + psinv.c + report.c + robfor.c + robinv.c + sinfor.c + sininv.c + somfor.c + sominv.c + sphdz.c + sterfor.c + sterinv.c + stplnfor.c + stplninv.c + tmfor.c + tminv.c + untfz.c + utmfor.c + utminv.c + vandgfor.c + vandginv.c + wivfor.c + wivinv.c + wviifor.c + wviiinv.c + ) + +add_library(gctpc OBJECT ${src}) + +target_include_directories(gctpc PUBLIC + $ + $) + +install( + TARGETS gctpc + EXPORT wgrib2_exports + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})