Files
rocm-systems/opencl/tools/clinfo/CMakeLists.txt
T
foreman 04412e2b5a P4 to Git Change 1419430 by lmoriche@lmoriche_palamida on 2017/06/07 12:28:09
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
	- Enable building the ICD and clinfo.

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#11 edit
... //depot/stg/opencl/drivers/opencl/tools/clinfo/CMakeLists.txt#2 edit
2017-06-07 12:55:38 -04:00

12 lines
247 B
CMake

set(CMAKE_CXX_FLAGS "-std=c++11")
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
include_directories(${OPENCL_INCLUDE_DIRS})
add_definitions(-DHAVE_CL2_HPP)
add_executable(clinfo clinfo.cpp)
target_link_libraries(clinfo OpenCL)