CMake install: related to GRIB-613

This commit is contained in:
Shahram Najm 2014-12-18 11:03:45 +00:00
parent f9b1a38101
commit 96e93e5c50
2 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,9 @@ install( FILES ${definition_files} ${table_files}
DESTINATION share/${PROJECT_NAME}/definitions DESTINATION share/${PROJECT_NAME}/definitions
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ ) PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
install( FILES installDefinitions.sh
DESTINATION share/${PROJECT_NAME}/definitions)
install( DIRECTORY budg bufr cdf common grib1 grib2 gts mars metar taf tide hdf5 wrap install( DIRECTORY budg bufr cdf common grib1 grib2 gts mars metar taf tide hdf5 wrap
DESTINATION share/${PROJECT_NAME}/definitions DESTINATION share/${PROJECT_NAME}/definitions
FILES_MATCHING FILES_MATCHING
@ -20,7 +23,7 @@ install( DIRECTORY budg bufr cdf common grib1 grib2 gts mars metar taf tide hdf
file( COPY ${definition_files} ${table_files} file( COPY ${definition_files} ${table_files}
DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions ) DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions )
file( COPY budg cdf common grib1 grib2 gts mars metar taf tide hdf5 wrap file( COPY budg bufr cdf common grib1 grib2 gts mars metar taf tide hdf5 wrap
DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions
FILES_MATCHING FILES_MATCHING
PATTERN "*.def" PATTERN "*.def"

View File

@ -54,7 +54,7 @@ if( HAVE_PYTHON )
swig_link_libraries( gribapi_swig grib_api ${PYTHON_LIBRARIES} ) swig_link_libraries( gribapi_swig grib_api ${PYTHON_LIBRARIES} )
set(PYTHON_DEST "lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages" ) set(PYTHON_DEST "lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/grib_api" )
install(TARGETS _gribapi_swig DESTINATION ${PYTHON_DEST} ) install(TARGETS _gribapi_swig DESTINATION ${PYTHON_DEST} )