1set(CUDA_HOST_COMPILER gcc)
2set(CUDA_NVCC_FLAGS -std=c++11)
3
4if(ACXXEL_ENABLE_CUDA)
5cuda_add_executable(simple_example simple_example.cu)
6target_link_libraries(simple_example acxxel)
7endif()
8
9if(ACXXEL_ENABLE_OPENCL)
10add_executable(opencl_example opencl_example.cpp)
11target_link_libraries(opencl_example acxxel ${OpenCL_LIBRARIES})
12endif()
13