diff options
Diffstat (limited to 'final/Bitcode/Benchmarks/Halide/CMakeLists.txt')
-rw-r--r-- | final/Bitcode/Benchmarks/Halide/CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/final/Bitcode/Benchmarks/Halide/CMakeLists.txt b/final/Bitcode/Benchmarks/Halide/CMakeLists.txt new file mode 100644 index 00000000..72a94af6 --- /dev/null +++ b/final/Bitcode/Benchmarks/Halide/CMakeLists.txt @@ -0,0 +1,26 @@ +if(NOT WIN32) + find_package(Threads) + list(APPEND LDFLAGS ${CMAKE_THREAD_LIBS_INIT}) + foreach(lib ${CMAKE_DL_LIBS}) + list(APPEND LDFLAGS -l${lib}) + endforeach() +endif() +if(NOT MSVC) + list(APPEND CXXFLAGS "-std=c++11") +endif() + +macro(test_img_input img) + set(imgpath "${CMAKE_CURRENT_SOURCE_DIR}/../images/${img}") + llvm_test_run(${imgpath}.bytes ${ARGN} + ${CMAKE_CURRENT_BINARY_DIR}/${img}_out.bytes) + llvm_test_verify(${FPCMP} + ${CMAKE_CURRENT_SOURCE_DIR}/output/${img}_out.bytes + ${CMAKE_CURRENT_BINARY_DIR}/${img}_out.bytes + ) +endmacro() + +if(ARCH STREQUAL "x86") + add_subdirectory(local_laplacian) + add_subdirectory(bilateral_grid) + add_subdirectory(blur) +endif() |