Files
OpenCL-CTS/test_conformance/compiler/CMakeLists.txt
Sreelakshmi Haridas Maruthur 6adf4ead5c build: Various improvements. (#743) (#1006)
- Remove the build_<platform> scripts that were simply calling cmake in favor of
  using cmake directly
- Move flag  CRT_SECURE_NO_WARNING into a section specifically for visual studio
- Change vendor file selection to just use the file if present
- Add a variable for determining whether to link against pthread
- Delete all lines in CMakeVendor.txt so each implementation can define their own

Change-Id: Ibbd83521ce4d42d09dcbd0b16efa9fbe6cbf785d
2020-10-21 10:02:22 +01:00

34 lines
1.1 KiB
CMake

set(MODULE_NAME COMPILER)
set(${MODULE_NAME}_SOURCES
main.cpp
test_build_helpers.cpp
test_compile.cpp
test_async_build.cpp
test_build_options.cpp
test_preprocessor.cpp
test_opencl_c_versions.cpp
test_image_macro.cpp
test_compiler_defines_for_extensions.cpp
test_pragma_unroll.cpp
test_unload_platform_compiler.cpp
test_feature_macro.cpp
)
include(../CMakeCommon.txt)
# Copy the required test include directories into the build directory.
if(NOT DEFINED COMPILER_TEST_RESOURCES)
set(COMPILER_TEST_RESOURCES $<TARGET_FILE_DIR:${${MODULE_NAME}_OUT}>)
endif()
add_custom_command(
COMMENT "Copying compiler test resources..."
TARGET ${${MODULE_NAME}_OUT}
PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CLConform_SOURCE_DIR}/test_conformance/compiler/includeTestDirectory
${COMPILER_TEST_RESOURCES}/includeTestDirectory
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CLConform_SOURCE_DIR}/test_conformance/compiler/secondIncludeTestDirectory
${COMPILER_TEST_RESOURCES}/secondIncludeTestDirectory)