mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-20 22:39:03 +00:00
Fixup CMake to work with OpenCL 1.2 branch.
This commit is contained in:
committed by
Kévin Petit
parent
5413bcf52e
commit
b4e39211d7
@@ -1,57 +1,71 @@
|
||||
add_executable(conformance_test_integer_ops
|
||||
main.c
|
||||
test_int_basic_ops.c
|
||||
test_integers.cpp
|
||||
test_upsample.cpp
|
||||
test_intmul24.c test_intmad24.c
|
||||
test_sub_sat.c test_add_sat.c
|
||||
test_abs.c test_absdiff.c
|
||||
test_unary_ops.cpp
|
||||
verification_and_generation_functions.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/conversions.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
../../test_common/harness/msvc9.c
|
||||
)
|
||||
|
||||
set_source_files_properties(
|
||||
main.c
|
||||
test_int_basic_ops.c
|
||||
test_intmul24.c test_intmad24.c
|
||||
test_sub_sat.c test_add_sat.c
|
||||
test_abs.c test_absdiff.c
|
||||
test_unary_ops.cpp
|
||||
verification_and_generation_functions.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/conversions.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
../../test_common/harness/msvc9.c
|
||||
PROPERTIES LANGUAGE CXX)
|
||||
if (NOT CMAKE_CL_64 AND NOT MSVC)
|
||||
set_source_files_properties(
|
||||
main.c
|
||||
test_int_basic_ops.c
|
||||
test_intmul24.c test_intmad24.c
|
||||
test_sub_sat.c test_add_sat.c
|
||||
test_abs.c test_absdiff.c
|
||||
test_unary_ops.cpp
|
||||
verification_and_generation_functions.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/conversions.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
../../test_common/harness/msvc9.c
|
||||
COMPILE_FLAGS -march=i686)
|
||||
endif (NOT CMAKE_CL_64 AND NOT MSVC)
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_integer_ops
|
||||
${CLConform_LIBRARIES})
|
||||
add_executable(conformance_test_integer_ops
|
||||
main.c
|
||||
test_popcount.c
|
||||
test_int_basic_ops.c
|
||||
test_integers.cpp
|
||||
test_upsample.cpp
|
||||
test_intmul24.c test_intmad24.c
|
||||
test_sub_sat.c test_add_sat.c
|
||||
test_abs.c test_absdiff.c
|
||||
test_unary_ops.cpp
|
||||
verification_and_generation_functions.c
|
||||
../../test_common/harness/conversions.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
)
|
||||
|
||||
set_source_files_properties(
|
||||
main.c
|
||||
test_popcount.c
|
||||
test_int_basic_ops.c
|
||||
test_integers.cpp
|
||||
test_upsample.cpp
|
||||
test_intmul24.c test_intmad24.c
|
||||
test_sub_sat.c test_add_sat.c
|
||||
test_abs.c test_absdiff.c
|
||||
test_unary_ops.cpp
|
||||
verification_and_generation_functions.c
|
||||
../../test_common/harness/conversions.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
PROPERTIES LANGUAGE CXX)
|
||||
|
||||
if (NOT CMAKE_CL_64 AND NOT MSVC)
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)" AND NOT MSVC)
|
||||
set_source_files_properties(
|
||||
main.c
|
||||
test_popcount.c
|
||||
test_int_basic_ops.c
|
||||
test_integers.cpp
|
||||
test_upsample.cpp
|
||||
test_intmul24.c test_intmad24.c
|
||||
test_sub_sat.c test_add_sat.c
|
||||
test_abs.c test_absdiff.c
|
||||
test_unary_ops.cpp
|
||||
verification_and_generation_functions.c
|
||||
../../test_common/harness/conversions.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
COMPILE_FLAGS -march=i686)
|
||||
endif()
|
||||
endif (NOT CMAKE_CL_64 AND NOT MSVC)
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_integer_ops
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
install(TARGETS conformance_test_integer_ops
|
||||
DESTINATION "${CLConf_OUT_DIR}")
|
||||
|
||||
Reference in New Issue
Block a user