mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 23:49:02 +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,25 +1,34 @@
|
||||
add_executable(conformance_contractions
|
||||
contractions.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/mingw_compat.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
)
|
||||
set_source_files_properties(
|
||||
contractions.c
|
||||
COMPILE_FLAGS -msse)
|
||||
if(WIN32)
|
||||
set_source_files_properties(
|
||||
contractions.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/mingw_compat.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
PROPERTIES LANGUAGE CXX)
|
||||
endif(WIN32)
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_contractions
|
||||
${CLConform_LIBRARIES})
|
||||
include_directories(../../test_common/harness)
|
||||
|
||||
add_executable(conformance_test_contractions
|
||||
contractions.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/mingw_compat.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
)
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
|
||||
set_source_files_properties(
|
||||
contractions.c
|
||||
COMPILE_FLAGS -msse)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set_source_files_properties(
|
||||
contractions.c
|
||||
../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/mingw_compat.c
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/rounding_mode.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
PROPERTIES LANGUAGE CXX)
|
||||
endif(WIN32)
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_contractions
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
install(TARGETS conformance_test_contractions
|
||||
DESTINATION "${CLConf_OUT_DIR}")
|
||||
|
||||
Reference in New Issue
Block a user