if(PERF_NUM)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -std=c++17 -D PERF_NUM")
message (STATUS "target will be built for performance tabulation")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -std=c++17")
endif()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
add_executable (dct DCT.cpp)
target_link_libraries(dct OpenCL sycl)
file(COPY ../res/willyriver.bmp DESTINATION .)
if(WIN32)
add_custom_target (run dct.exe willyriver.bmp willyriver_processed.bmp)
else()
add_custom_target (run ./dct willyriver.bmp willyriver_processed.bmp)
endif()
