Files
OpenCL-CTS/test_conformance/headers/CMakeLists.txt
Bhargav Das 2c0abd3f75 Fixed test runner files and output binary files (#464)
Put "run_conformance.py" and all test runner files ".csv" in build directory

Put "run_conformance.py" and all test runner files ".csv" in build directory
Added steps in CMakeLists.txt to copy the ".csv" files and "run_conformance.py" from 'test_conformance' directory

Signed-off-by: bhargavthriler <bhargavthriler@gmail.com>

cl12: change binary names to aligned with the test runner files

Changed output binary names to match with the test runner files .csv files

Signed-off-by: bhargavthriler <bhargavthriler@gmail.com>

Removed relative paths, changed comment style

Removed relative paths and replaced with CMake variables
Changed comment style to match with remaining comment style to maintain consistency

changed destination relative path with cmake variable

Signed-off-by: bhargavthriler <bhargavthriler@gmail.com>

fixed binary name in test runner files

Signed-off-by: bhargavthriler <bhargavthriler@gmail.com>
2020-01-10 15:12:11 +00:00

83 lines
1.6 KiB
CMake

add_executable(test_headers
test_headers.c
)
add_executable(test_cl_h
test_cl.h.c
)
add_executable(test_cl_platform_h
test_cl_platform.h.c
)
add_executable(test_cl_gl_h
test_cl_gl.h.c
)
add_executable(test_opencl_h
test_opencl.h.c
)
add_executable(test_cl_h_c99
test_cl.h.c
)
add_executable(test_cl_platform_h_c99
test_cl_platform.h.c
)
add_executable(test_cl_gl_h_c99
test_cl_gl.h.c
)
add_executable(test_opencl_h_c99
test_opencl.h.c
)
set_target_properties(test_cl_h_c99
test_cl_platform_h_c99
test_cl_gl_h_c99
test_opencl_h_c99
PROPERTIES COMPILE_FLAGS "-std=c99"
)
TARGET_LINK_LIBRARIES(test_headers
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(test_cl_h
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(test_cl_platform_h
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(test_cl_gl_h
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(test_opencl_h
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(test_cl_h_c99
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(test_cl_platform_h_c99
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(test_cl_gl_h_c99
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(test_opencl_h_c99
${CLConform_LIBRARIES})
add_dependencies(OpenCLCTS test_headers test_cl_h
test_cl_platform_h test_cl_gl_h
test_opencl_h test_cl_h_c99
test_cl_platform_h_c99 test_cl_gl_h_c99
test_opencl_h_c99)
install(TARGETS test_headers test_cl_h
test_cl_platform_h test_cl_gl_h
test_opencl_h test_cl_h_c99
test_cl_platform_h_c99 test_cl_gl_h_c99
test_opencl_h_c99
DESTINATION "${CLConf_OUT_DIR}"
COMPONENT OpenCLCTS)