blob: dd8503d68bc4d3286b459beb68c13e236c179680 [file] [edit]
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)
llvm_test_run(%S/images/${img}.bytes ${ARGN} %S/${img}_out.bytes)
llvm_test_verify(%b/${FPCMP} %S/output/${img}_out.bytes %S/${img}_out.bytes)
endmacro()
macro(test_img_data target img)
llvm_test_data(${target} SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/.. images/${img}.bytes)
llvm_test_data(${target} output/${img}_out.bytes)
endmacro()
# Disabled for Apple platforms, since the bitcode's baked-in datalayout is
# incompatible with Mach-O platforms.
if(ARCH STREQUAL "x86" AND NOT APPLE)
add_subdirectory(local_laplacian)
add_subdirectory(bilateral_grid)
add_subdirectory(blur)
endif()