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,36 +1,58 @@
add_executable(conformance_test_compiler
main.c
test_build_helpers.c
test_compile.c
test_async_build.c
test_build_options.cpp
test_preprocessor.c
test_compiler_defines_for_extensions.cpp
../../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/conversions.c
../../test_common/harness/msvc9.c
)
set_source_files_properties(
main.c
test_build_helpers.c
test_compile.c
test_async_build.c
test_preprocessor.c
test_compiler_defines_for_extensions.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_compiler
${CLConform_LIBRARIES})
add_executable(conformance_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(conformance_test_compiler
${CLConform_LIBRARIES})
# Need to copy the test include folders to sit beside the executable
add_custom_command(TARGET conformance_test_compiler POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/includeTestDirectory"
"$<TARGET_FILE_DIR:conformance_test_compiler>/includeTestDirectory"
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/secondIncludeTestDirectory"
"$<TARGET_FILE_DIR:conformance_test_compiler>/secondIncludeTestDirectory")
install(TARGETS conformance_test_compiler
DESTINATION "${CLConf_OUT_DIR}")
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/includeTestDirectory
DESTINATION "${CLConf_OUT_DIR}")
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/secondIncludeTestDirectory
DESTINATION "${CLConf_OUT_DIR}")