2012-07-18 05:44:41 +08:00
|
|
|
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(".")
|
|
|
|
|
2012-07-19 05:12:58 +08:00
|
|
|
SET(liblib_LIBS dispatch netcdf3)
|
2012-07-18 05:44:41 +08:00
|
|
|
|
2012-07-19 05:12:58 +08:00
|
|
|
IF(USE_HDF5 OR USE_NETCDF4)
|
|
|
|
SET(liblib_LIBS ${liblib_LIBS} netcdf4)
|
|
|
|
ENDIF()
|
2012-07-18 05:44:41 +08:00
|
|
|
|
2012-07-19 05:12:58 +08:00
|
|
|
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>)
|
2012-07-18 05:44:41 +08:00
|
|
|
|