mirror of https://github.com/ecmwf/eccodes.git
CMake fixes
This commit is contained in:
parent
730127fa11
commit
333b4cbc88
|
@ -54,6 +54,7 @@ foreach( tool ${tests} )
|
|||
ecbuild_add_test( TARGET f_${tool}_test
|
||||
TYPE SCRIPT
|
||||
DEPENDS f_${tool}
|
||||
CONDITION ENABLE_FORTRAN
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${tool}.sh
|
||||
RESOURCES include.sh
|
||||
)
|
||||
|
|
|
@ -18,8 +18,10 @@ foreach( tool ${test_bins} )
|
|||
SOURCES ${tool}.c
|
||||
LIBS grib_api
|
||||
)
|
||||
list( APPEND ptools p_${tool} )
|
||||
endforeach()
|
||||
|
||||
|
||||
# Now add each test
|
||||
#################################################
|
||||
list( APPEND tests
|
||||
|
@ -41,7 +43,7 @@ list( APPEND tests
|
|||
foreach (test ${tests})
|
||||
ecbuild_add_test( TARGET p_${test}_test
|
||||
TYPE SCRIPT
|
||||
DEPENDS p_${tool}
|
||||
DEPENDS ${ptools}
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${test}.sh
|
||||
RESOURCES include.sh ${test}.py
|
||||
ENVIRONMENT PYTHON=${PYTHON_EXECUTABLE}
|
||||
|
|
Loading…
Reference in New Issue