• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1set(MODULE_NAME COMPILER)
2
3set(${MODULE_NAME}_SOURCES
4    main.cpp
5    test_build_helpers.cpp
6    test_compile.cpp
7    test_async_build.cpp
8    test_build_options.cpp
9    test_preprocessor.cpp
10    test_opencl_c_versions.cpp
11    test_image_macro.cpp
12    test_compiler_defines_for_extensions.cpp
13    test_pragma_unroll.cpp
14    test_unload_platform_compiler.cpp
15    test_feature_macro.cpp
16)
17
18include(../CMakeCommon.txt)
19
20# Copy the required test include directories into the build directory.
21if(NOT DEFINED COMPILER_TEST_RESOURCES)
22    set(COMPILER_TEST_RESOURCES $<TARGET_FILE_DIR:${${MODULE_NAME}_OUT}>)
23endif()
24add_custom_command(
25        COMMENT "Copying compiler test resources..."
26        TARGET ${${MODULE_NAME}_OUT}
27        PRE_BUILD
28        COMMAND ${CMAKE_COMMAND} -E copy_directory
29        ${CLConform_SOURCE_DIR}/test_conformance/compiler/includeTestDirectory
30        ${COMPILER_TEST_RESOURCES}/includeTestDirectory
31        COMMAND ${CMAKE_COMMAND} -E copy_directory
32        ${CLConform_SOURCE_DIR}/test_conformance/compiler/secondIncludeTestDirectory
33        ${COMPILER_TEST_RESOURCES}/secondIncludeTestDirectory)
34