Cmake changes from 1.10.4

This commit is contained in:
Shahram Najm 2013-04-02 14:26:56 +01:00
parent f736b6e63e
commit d59d323574
5 changed files with 21 additions and 2 deletions

View File

@ -80,7 +80,9 @@ add_subdirectory( definitions )
add_subdirectory( tests )
add_subdirectory( tigge )
add_subdirectory( examples )
# add_subdirectory( samples )
add_subdirectory( samples )
add_subdirectory( ifs_samples ) # must come after samples
# ecbuild_dont_pack( DIRS samples DONT_PACK_REGEX "*.grib" )

View File

@ -0,0 +1,14 @@
file( GLOB definition_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.def" )
file( GLOB table_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.table" )
install( FILES ${definition_files} ${table_files}
DESTINATION share/${PROJECT_NAME}/definitions
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
install( DIRECTORY budg cdf common grib1 grib2 gts mars tide
DESTINATION share/${PROJECT_NAME}/definitions
FILES_MATCHING
PATTERN "*.def"
PATTERN "*.table"
PATTERN "4.2.192.*.table" EXCLUDE
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )

View File

@ -4,5 +4,6 @@ if( GRB_API_FORTRAN )
# add here the building of fortran bindings
install( FILES grib_api_F77.h DESTINATION include/${PROJECT_NAME} )
endif()

View File

@ -316,3 +316,5 @@ ecbuild_add_library( TARGET grib_api
# TODO: add support for jpg and png
install( FILES grib_api.h DESTINATION include/${PROJECT_NAME} )

View File

@ -13,7 +13,7 @@ proto:;-chmod +w grib_api_prototypes.h;mkptypes -A $(libgrib_api_a_prototypes) $
test:all;(cd ../tests; make tests)
templates:
-chmod +wgrib_templates.h
-chmod +w grib_templates.h
./grib2c.pl ../templates/*.grib
grib_lex.c : gribl.l grib_yacc.h