mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 15:39:03 +00:00
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>
63 lines
1.9 KiB
CMake
63 lines
1.9 KiB
CMake
add_executable(test_compiler
|
|
main.c
|
|
test_build_helpers.c
|
|
test_compile.c
|
|
test_compiler_defines_for_extensions.cpp
|
|
test_async_build.c
|
|
test_build_options.cpp
|
|
test_preprocessor.c
|
|
test_image_macro.c
|
|
../../test_common/harness/errorHelpers.c
|
|
../../test_common/harness/threadTesting.c
|
|
../../test_common/harness/testHarness.c
|
|
../../test_common/harness/kernelHelpers.c
|
|
../../test_common/harness/typeWrappers.cpp
|
|
../../test_common/harness/mt19937.c
|
|
../../test_common/harness/msvc9.c
|
|
../../test_common/harness/conversions.c
|
|
)
|
|
|
|
set_source_files_properties(
|
|
main.c
|
|
test_build_helpers.c
|
|
test_compile.c
|
|
test_compiler_defines_for_extensions.cpp
|
|
test_async_build.c
|
|
test_build_options.cpp
|
|
test_preprocessor.c
|
|
test_image_macro.c
|
|
../../test_common/harness/errorHelpers.c
|
|
../../test_common/harness/threadTesting.c
|
|
../../test_common/harness/testHarness.c
|
|
../../test_common/harness/kernelHelpers.c
|
|
../../test_common/harness/typeWrappers.cpp
|
|
../../test_common/harness/mt19937.c
|
|
../../test_common/harness/msvc9.c
|
|
../../test_common/harness/conversions.c
|
|
PROPERTIES LANGUAGE CXX)
|
|
|
|
TARGET_LINK_LIBRARIES(test_compiler
|
|
${CLConform_LIBRARIES})
|
|
|
|
# Need to copy the test include folders to sit beside the executable
|
|
add_custom_command(TARGET test_compiler POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/includeTestDirectory"
|
|
"$<TARGET_FILE_DIR:test_compiler>/includeTestDirectory"
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/secondIncludeTestDirectory"
|
|
"$<TARGET_FILE_DIR:test_compiler>/secondIncludeTestDirectory")
|
|
|
|
add_dependencies(OpenCLCTS test_compiler)
|
|
install(TARGETS test_compiler
|
|
DESTINATION "${CLConf_OUT_DIR}"
|
|
COMPONENT OpenCLCTS)
|
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/includeTestDirectory
|
|
DESTINATION "${CLConf_OUT_DIR}"
|
|
COMPONENT OpenCLCTS)
|
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/secondIncludeTestDirectory
|
|
DESTINATION "${CLConf_OUT_DIR}"
|
|
COMPONENT OpenCLCTS)
|