[Beignet] [PATCH] utests/CMakeList.txt: Remove kernel files which generated by utest_generator.py.
Yi Sun
yi.sun at intel.com
Thu Dec 26 21:36:48 PST 2013
Signed-off-by: Yi Sun <yi.sun at intel.com>
---
utests/CMakeLists.txt | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt
index 6e5ef12..d9c1169 100644
--- a/utests/CMakeLists.txt
+++ b/utests/CMakeLists.txt
@@ -7,7 +7,10 @@ EXEC_PROGRAM(python ${CMAKE_CURRENT_SOURCE_DIR} ARGS utest_math_gen.py OUTPUT_VA
string(REGEX REPLACE " " ";" ADDMATHFUNC ${GEN_MATH_STRING})
string(REGEX REPLACE " " "\n" NAMEMATHLIST ${GEN_MATH_STRING})
MESSAGE(STATUS "Generated Builtin Math Functions:\n" ${NAMEMATHLIST})
-set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES generated/)
+
+string(REGEX REPLACE "generated/([^\ ]*)\\.cpp" "../kernels/\\1.cl" KERNEL_MATH_LIST ${GEN_MATH_STRING})
+string(REGEX REPLACE " " ";" KERNEL_MATH_LIST ${KERNEL_MATH_LIST})
+set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "generated;${KERNEL_MATH_LIST}")
link_directories (${LLVM_LIBRARY_DIR})
set (utests_sources
--
1.7.6.4
More information about the Beignet
mailing list