Skip to content
Snippets Groups Projects
Commit b77ad5a5 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

added options for enableing internal libraries

parent b216d9dc
No related branches found
No related tags found
1 merge request!121M300433/cmake improvements and define cleanups
......@@ -17,13 +17,30 @@ set_target_properties(Threads::Threads PROPERTIES THREADS_PREFER_PTHREAD_FLAG TR
list(APPEND cdi_compile_defs HAVE_PTHREAD=1)
# enable default internal libs
list(APPEND cdi_compile_defs
HAVE_LIBGRIB=1
HAVE_LIBCGRIBEX=1
HAVE_LIBEXTRA=1
HAVE_LIBSERVICE=1
HAVE_LIBIEG=1
)
option(enable_libgrib "GRIB support [default=ON]" ON)
if(${enable_libgrib})
list(APPEND cdi_compile_defs HAVE_LIBGRIB=1)
endif()
option(enable_cgribex "Use the CGRIBEX library [default=ON]" ON)
if(${enable_cgribex})
list(APPEND cdi_compile_defs LIBCGRIBEX=1)
endif()
option(enable_extra "Use the extra library [default=ON]" ON)
if(${enable_extra})
list(APPEND cdi_compile_defs HAVE_LIBEXTRA=1)
endif()
option(enable_ieg "Use the extra library [default=ON]" ON)
if(${enable_ieg})
list(APPEND cdi_compile_defs HAVE_LIBIEG=1)
endif()
option(enable_service "Use the extra library [default=ON]" ON)
if(${enable_service})
list(APPEND cdi_compile_defs HAVE_LIBSERVICE=1)
endif()
# ecCodes
find_package(eccodes)
......
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