mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
* Test feature macro OpenCL 3.0 * Test feature macro OpenCL 3.0 - refactor to template function * Use test_error and format fix issues * Fix returned value type for CL_DEVICE_MAX_GLOBAL_VARIABLE_SIZE * Code format fix * Feature macro test - refactor code to have one test case * add consistency checking comparing supported features to CL_DEVICE_OPENCL_C_FEATURES * fix minor issues * Feature macro test - fix test version * Feature macro test - add -cl-std=CL3.0 build option * Feature macro test - compilation errors * Feature macro test - compilation errors OSX * Feature macro test - fix adding build options * Feature macro test - share function OutputBuildLogs * Feature macro test - back removed cases * Feature macro test - review fixes * Feature macro test - split check image formats * Feature macro test - fixed version
35 lines
1.0 KiB
CMake
35 lines
1.0 KiB
CMake
set(MODULE_NAME COMPILER)
|
|
|
|
set(${MODULE_NAME}_SOURCES
|
|
main.cpp
|
|
test_build_helpers.cpp
|
|
test_compile.cpp
|
|
test_async_build.cpp
|
|
test_build_options.cpp
|
|
test_preprocessor.cpp
|
|
test_image_macro.cpp
|
|
test_compiler_defines_for_extensions.cpp
|
|
test_pragma_unroll.cpp
|
|
test_unload_platform_compiler.cpp
|
|
test_feature_macro.cpp
|
|
)
|
|
|
|
include(../CMakeCommon.txt)
|
|
|
|
# Copy required CL include directories into the binary directory
|
|
|
|
set(COMPILER_SOURCE_DIR ${CLConform_SOURCE_DIR}/test_conformance/compiler)
|
|
set(COMPILER_TARGET ${${MODULE_NAME}_OUT})
|
|
|
|
add_custom_command(
|
|
TARGET ${COMPILER_TARGET}
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
|
"${COMPILER_SOURCE_DIR}/includeTestDirectory"
|
|
$<TARGET_FILE_DIR:${COMPILER_TARGET}>/includeTestDirectory)
|
|
|
|
add_custom_command(
|
|
TARGET ${COMPILER_TARGET}
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
|
"${COMPILER_SOURCE_DIR}/secondIncludeTestDirectory"
|
|
$<TARGET_FILE_DIR:${COMPILER_TARGET}>/secondIncludeTestDirectory)
|