[arrayfire] 50/61: Generate examples as dir/filename.cpp

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Dec 8 11:55:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit d0732f191de00e1acbb208d81ea33c692d0b564a
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Thu Dec 3 16:46:28 2015 -0500

    Generate examples as dir/filename.cpp
---
 docs/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
index b425657..aa9a259 100644
--- a/docs/CMakeLists.txt
+++ b/docs/CMakeLists.txt
@@ -32,8 +32,10 @@ LIST(SORT EXAMPLES_CPP)
 
 # Get filenames and write to a string
 FOREACH(SRC ${EXAMPLES_CPP})
+    GET_FILENAME_COMPONENT(DIR_PATH ${SRC} DIRECTORY)
+    GET_FILENAME_COMPONENT(DIR_NAME ${DIR_PATH} NAME)
     GET_FILENAME_COMPONENT(SRC_NAME ${SRC} NAME)
-    SET(EXAMPLES_LIST "${EXAMPLES_LIST}\\example ${SRC_NAME}\n")
+    SET(EXAMPLES_LIST "${EXAMPLES_LIST}\\example ${DIR_NAME}/${SRC_NAME}\n")
 ENDFOREACH(SRC ${EXAMPLES_CPP})
 
 # Write string containing file names to examples.dox

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list