mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r20960] Added new source files.
Added new test and test files to test section Tested: local linux
This commit is contained in:
parent
864a502671
commit
a2f0603135
@ -15,6 +15,7 @@ INCLUDE_DIRECTORIES (
|
||||
# hl_f90CStub lib
|
||||
#-----------------------------------------------------------------------------
|
||||
SET (HDF5_HL_F90_C_SRCS
|
||||
${HDF5_HL_F90_SRC_SOURCE_DIR}/H5DSfc.c
|
||||
${HDF5_HL_F90_SRC_SOURCE_DIR}/H5LTfc.c
|
||||
${HDF5_HL_F90_SRC_SOURCE_DIR}/H5IMfc.c
|
||||
${HDF5_HL_F90_SRC_SOURCE_DIR}/H5IMcc.c
|
||||
@ -34,6 +35,7 @@ H5_SET_LIB_OPTIONS (${HDF5_HL_F90_C_LIB_TARGET} ${HDF5_HL_F90_C_LIB_NAME} ${LIB_
|
||||
# Fortran Modules
|
||||
#-----------------------------------------------------------------------------
|
||||
SET (HDF5_HL_F90_F_SRCS
|
||||
${HDF5_HL_F90_SRC_SOURCE_DIR}/H5DSff.f90
|
||||
${HDF5_HL_F90_SRC_SOURCE_DIR}/H5TBff.f90
|
||||
${HDF5_HL_F90_SRC_SOURCE_DIR}/H5LTff.f90
|
||||
${HDF5_HL_F90_SRC_SOURCE_DIR}/H5IMff.f90
|
||||
@ -44,9 +46,9 @@ SET (SHARED_LINK_FLAGS " ")
|
||||
IF (BUILD_SHARED_LIBS)
|
||||
IF (WIN32 AND NOT CYGWIN)
|
||||
SET_PROPERTY (TARGET ${HDF5_HL_F90_LIB_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
BUILD_HDF5_DLL
|
||||
)
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
BUILD_HDF5_DLL
|
||||
)
|
||||
IF (MSVC)
|
||||
SET (SHARED_LINK_FLAGS "/DLL")
|
||||
ENDIF (MSVC)
|
||||
@ -55,7 +57,7 @@ ENDIF (BUILD_SHARED_LIBS)
|
||||
IF (WIN32 AND NOT CYGWIN)
|
||||
SET_PROPERTY (TARGET ${HDF5_HL_F90_LIB_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
HDF5F90_WINDOWS
|
||||
HDF5F90_WINDOWS
|
||||
)
|
||||
ENDIF (WIN32 AND NOT CYGWIN)
|
||||
TARGET_FORTRAN_WIN_PROPERTIES (${HDF5_HL_F90_LIB_TARGET} ${SHARED_LINK_FLAGS})
|
||||
|
@ -20,6 +20,15 @@ ADD_TEST (
|
||||
f1tab.h5
|
||||
)
|
||||
|
||||
#-- Adding test for hl_f90_tstds
|
||||
ADD_EXECUTABLE (hl_f90_tstds tstds.f90)
|
||||
TARGET_NAMING (hl_f90_tstds ${LIB_TYPE})
|
||||
TARGET_FORTRAN_WIN_PROPERTIES (hl_f90_tstds "")
|
||||
TARGET_LINK_LIBRARIES (hl_f90_tstds ${HDF5_HL_F90_LIB_TARGET} ${HDF5_F90_LIB_TARGET})
|
||||
SET_TARGET_PROPERTIES (hl_f90_tstds PROPERTIES LINKER_LANGUAGE Fortran)
|
||||
|
||||
ADD_TEST (NAME hl_f90_tstds COMMAND $<TARGET_FILE:hl_f90_tstds>)
|
||||
|
||||
#-- Adding test for hl_f90_tstlite
|
||||
ADD_EXECUTABLE (hl_f90_tstlite tstlite.f90)
|
||||
TARGET_NAMING (hl_f90_tstlite ${LIB_TYPE})
|
||||
|
Loading…
Reference in New Issue
Block a user