samples can be taken from build directory

This commit is contained in:
Shahram Najm 2014-12-01 09:54:46 +00:00
parent 93d8264d58
commit 2c23909d0e
1 changed files with 5 additions and 0 deletions

View File

@ -10,3 +10,8 @@ endforeach()
set( GRIB_API_SAMPLES_DIR ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE )
set( GRIB_API_SAMPLES_FILES ${GRIB_API_SAMPLES_FILES} PARENT_SCOPE )
# copy the samples to the build directory
file( COPY ${samples_files}
DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/samples )