Fixup CMake to work with OpenCL 1.2 branch.

This commit is contained in:
Neil Henning
2018-01-11 17:39:03 +00:00
committed by Kévin Petit
parent 5413bcf52e
commit b4e39211d7
36 changed files with 1716 additions and 1230 deletions

View File

@@ -1,33 +1,37 @@
add_executable(conformance_test_vecalign
globals.c
main.c
structs.c
test_vec_align.c
type_replacer.c
../../test_common/harness/testHarness.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/conversions.c
)
set_source_files_properties(
COMPILE_FLAGS -msse2)
set_source_files_properties(
globals.c
main.c
structs.c
test_vec_align.c
type_replacer.c
../../test_common/harness/testHarness.c
../../test_common/harness/msvc9.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/conversions.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_vecalign
${CLConform_LIBRARIES})
add_executable(conformance_test_vecalign
globals.c
main.c
structs.c
test_vec_align.c
type_replacer.c
../../test_common/harness/testHarness.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/conversions.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
globals.c
main.c
structs.c
test_vec_align.c
type_replacer.c
../../test_common/harness/testHarness.c
../../test_common/harness/msvc9.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/conversions.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_vecalign
${CLConform_LIBRARIES})
install(TARGETS conformance_test_vecalign
DESTINATION "${CLConf_OUT_DIR}")