CMake test changes

This commit is contained in:
Shahram Najm 2014-04-02 14:23:29 +01:00
parent 507528ce79
commit 6220118990
4 changed files with 11 additions and 7 deletions

View File

@ -153,6 +153,6 @@ endforeach()
# debug_var(tgts)
# Another dummy target which depends on all previous targets
#add_custom_target( getdata ALL DEPENDS ${tgts} )
add_custom_target( getdata DEPENDS ${tgts} )
add_dependencies( check getdata )
#add_custom_target( get_gribs ALL DEPENDS ${tgts} )
add_custom_target( get_gribs DEPENDS ${tgts} )
add_dependencies( check get_gribs )

View File

@ -256,8 +256,6 @@ foreach (f ${tigge_files_to_download})
LIST(APPEND tgts "${tgt}")
endforeach()
# debug_var(tgts)
# Anotehr dummy target which depends on all previous targets
add_custom_target( get_tigge_data DEPENDS ${tgts} )
add_dependencies( check get_tigge_data )
add_custom_target( get_tigge_gribs DEPENDS ${tgts} )
add_dependencies( check get_tigge_gribs )

View File

@ -41,10 +41,12 @@ list( APPEND tests
# )
foreach( tool ${tests} )
# Build the Fortran executable
ecbuild_add_executable( TARGET f_${tool}
NOINSTALL
SOURCES ${tool}.f90
CONDITION ENABLE_FORTRAN
LINKER_LANGUAGE Fortran
LIBS grib_api_f90 grib_api
)
@ -62,18 +64,21 @@ endforeach()
ecbuild_add_executable( TARGET f_new_from_file
NOINSTALL
SOURCES new_from_file.f90
CONDITION ENABLE_FORTRAN
LINKER_LANGUAGE Fortran
LIBS grib_api_f90 grib_api
)
ecbuild_add_executable( TARGET f_copy_namespace
NOINSTALL
SOURCES copy_namespace.f90
CONDITION ENABLE_FORTRAN
LINKER_LANGUAGE Fortran
LIBS grib_api_f90 grib_api
)
ecbuild_add_executable( TARGET f_set_gvc
NOINSTALL
SOURCES set_gvc.f90
CONDITION ENABLE_FORTRAN
LINKER_LANGUAGE Fortran
LIBS grib_api_f90 grib_api
)

View File

@ -301,6 +301,7 @@ list( APPEND grib_api_srcs
md5.h
md5.c
# Ship our generated lex/yacc C files
grib_yacc.c grib_lex.c
grib_windef.h
)