mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 07:39:01 +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,76 +1,76 @@
|
||||
add_executable(conformance_bruteforce
|
||||
FunctionList.c
|
||||
Sleep.c
|
||||
binary.c
|
||||
binaryOperator.c
|
||||
Utility.c
|
||||
binary_i.c binary_two_results_i.c i_unary.c
|
||||
macro_binary.c macro_unary.c mad.c
|
||||
main.c reference_math_fma.c reference_math.c
|
||||
ternary.c unary.c unary_two_results.c
|
||||
unary_two_results_i.c unary_u.c
|
||||
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/msvc9.c
|
||||
)
|
||||
|
||||
|
||||
set_source_files_properties(
|
||||
FunctionList.c
|
||||
Sleep.c
|
||||
binary.c
|
||||
binaryOperator.c
|
||||
Utility.c
|
||||
binary_i.c binary_two_results_i.c i_unary.c
|
||||
macro_binary.c macro_unary.c mad.c
|
||||
main.c reference_math.c
|
||||
ternary.c unary.c unary_two_results.c
|
||||
unary_two_results_i.c unary_u.c
|
||||
COMPILE_FLAGS -msse2)
|
||||
|
||||
if (MSVC)
|
||||
set_source_files_properties(
|
||||
FunctionList.c
|
||||
Sleep.c
|
||||
binary.c
|
||||
binaryOperator.c
|
||||
Utility.c reference_math_fma.c
|
||||
binary_i.c binary_two_results_i.c i_unary.c
|
||||
macro_binary.c macro_unary.c mad.c
|
||||
main.c reference_math.c
|
||||
ternary.c unary.c unary_two_results.c
|
||||
unary_two_results_i.c unary_u.c
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/msvc9.c
|
||||
PROPERTIES LANGUAGE CXX)
|
||||
endif(MSVC)
|
||||
|
||||
if (NOT CMAKE_CL_64 AND NOT MSVC)
|
||||
set_source_files_properties(
|
||||
FunctionList.c
|
||||
Sleep.c
|
||||
binary.c
|
||||
binaryOperator.c
|
||||
Utility.c reference_math_fma.c
|
||||
binary_i.c binary_two_results_i.c i_unary.c
|
||||
macro_binary.c macro_unary.c mad.c
|
||||
main.c reference_math.c
|
||||
ternary.c unary.c unary_two_results.c
|
||||
unary_two_results_i.c unary_u.c
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/msvc9.c
|
||||
COMPILE_FLAGS -march=i686)
|
||||
endif(NOT CMAKE_CL_64 AND NOT MSVC)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
set_source_files_properties(
|
||||
reference_math_fma.c
|
||||
COMPILE_FLAGS -O0)
|
||||
endif(CMAKE_COMPILER_IS_GNUCC)
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_bruteforce
|
||||
${CLConform_LIBRARIES})
|
||||
add_executable(conformance_test_bruteforce
|
||||
FunctionList.c
|
||||
Sleep.c
|
||||
binary.c
|
||||
binaryOperator.c
|
||||
Utility.c
|
||||
binary_i.c binary_two_results_i.c i_unary.c
|
||||
macro_binary.c macro_unary.c mad.c
|
||||
main.c reference_math.c
|
||||
ternary.c unary.c unary_two_results.c
|
||||
unary_two_results_i.c unary_u.c
|
||||
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/msvc9.c
|
||||
)
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
|
||||
set_source_files_properties(
|
||||
FunctionList.c
|
||||
Sleep.c
|
||||
binary.c
|
||||
binaryOperator.c
|
||||
Utility.c
|
||||
binary_i.c binary_two_results_i.c i_unary.c
|
||||
macro_binary.c macro_unary.c mad.c
|
||||
main.c reference_math.c
|
||||
ternary.c unary.c unary_two_results.c
|
||||
unary_two_results_i.c unary_u.c
|
||||
COMPILE_FLAGS -msse2)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
set_source_files_properties(
|
||||
FunctionList.c
|
||||
Sleep.c
|
||||
binary.c
|
||||
binaryOperator.c
|
||||
Utility.c
|
||||
binary_i.c binary_two_results_i.c i_unary.c
|
||||
macro_binary.c macro_unary.c mad.c
|
||||
main.c reference_math.c
|
||||
ternary.c unary.c unary_two_results.c
|
||||
unary_two_results_i.c unary_u.c
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/msvc9.c
|
||||
PROPERTIES LANGUAGE CXX)
|
||||
endif(MSVC)
|
||||
|
||||
if (NOT CMAKE_CL_64 AND NOT MSVC)
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)" AND NOT MSVC)
|
||||
set_source_files_properties(
|
||||
FunctionList.c
|
||||
Sleep.c
|
||||
binary.c
|
||||
binaryOperator.c
|
||||
Utility.c
|
||||
binary_i.c binary_two_results_i.c i_unary.c
|
||||
macro_binary.c macro_unary.c mad.c
|
||||
main.c reference_math.c
|
||||
ternary.c unary.c unary_two_results.c
|
||||
unary_two_results_i.c unary_u.c
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/ThreadPool.c
|
||||
../../test_common/harness/msvc9.c
|
||||
COMPILE_FLAGS -march=i686)
|
||||
endif()
|
||||
endif(NOT CMAKE_CL_64 AND NOT MSVC)
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_bruteforce
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
install(TARGETS conformance_test_bruteforce
|
||||
DESTINATION "${CLConf_OUT_DIR}")
|
||||
|
||||
Reference in New Issue
Block a user