mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
19 lines
384 B
CMake
19 lines
384 B
CMake
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
INCLUDE_DIRECTORIES(".")
|
|
|
|
SET(liblib_LIBS dispatch netcdf3)
|
|
|
|
IF(USE_HDF5 OR USE_NETCDF4)
|
|
SET(liblib_LIBS ${liblib_LIBS} netcdf4)
|
|
ENDIF()
|
|
|
|
FOREACH(LIBS ${liblib_LIBS})
|
|
SET(LARGS ${LARGS} $<TARGET_OBJECTS:${LIBS}>)
|
|
ENDFOREACH()
|
|
|
|
|
|
ADD_LIBRARY(netcdf stub.c ${LARGS})
|
|
#ADD_LIBRARY(netcdf stub.c $<TARGET_OBJECTS:dispatch> $<TARGET_OBJECTS:netcdf3>)
|
|
|