Skip to content

Commit

Permalink
added CMake files
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Feb 2, 2024
1 parent a3d9daf commit 83f507c
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wgrib2/gctpc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

add_subdirectory(source)
90 changes: 90 additions & 0 deletions wgrib2/gctpc/source/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}>)

install(
TARGETS gctpc
EXPORT wgrib2_exports
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})

0 comments on commit 83f507c

Please sign in to comment.