From 2c23909d0ed7b5aa27ab64ceccc91b0bad486888 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 1 Dec 2014 09:54:46 +0000 Subject: [PATCH] samples can be taken from build directory --- samples/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index af617a435..fad57dc4c 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -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 )