mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 15:39:03 +00:00
Build the harness as a static library (#430)
This reduces by a factor of roughly two the number of files to build. Fixes #193. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
add_subdirectory(test_common)
|
||||
add_subdirectory(test_conformance)
|
||||
|
||||
14
test_conformance/compatibility/test_common/CMakeLists.txt
Normal file
14
test_conformance/compatibility/test_common/CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
set(HARNESS_COMPAT_SOURCES
|
||||
harness/errorHelpers.c
|
||||
harness/imageHelpers.cpp
|
||||
harness/kernelHelpers.c
|
||||
harness/testHarness.c
|
||||
)
|
||||
|
||||
set_source_files_properties(${HARNESS_COMPAT_SOURCES} PROPERTIES LANGUAGE CXX)
|
||||
|
||||
add_library(harness-compat STATIC ${HARNESS_COMPAT_SOURCES})
|
||||
|
||||
target_link_libraries(harness-compat harness-common)
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
|
||||
set(HARNESS_LIB harness-compat)
|
||||
|
||||
add_subdirectory(api)
|
||||
add_subdirectory(basic)
|
||||
|
||||
@@ -21,15 +21,8 @@ set(${MODULE_NAME}_SOURCES
|
||||
test_null_buffer_arg.c
|
||||
test_kernel_arg_info.c
|
||||
test_queue_properties.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/conversions.c
|
||||
../../../../test_common/harness/mt19937.c
|
||||
../../../../test_common/harness/msvc9.c
|
||||
../../test_common/harness/imageHelpers.cpp
|
||||
)
|
||||
|
||||
set(${MODULE_NAME}_LIBS harness-compat)
|
||||
|
||||
include(../../../CMakeCommon.txt)
|
||||
|
||||
@@ -50,16 +50,8 @@ set(${MODULE_NAME}_SOURCES
|
||||
test_global_work_offsets.cpp
|
||||
test_kernel_call_kernel_function.cpp
|
||||
test_local_kernel_scope.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/imageHelpers.cpp
|
||||
../../../../test_common/harness/mt19937.c
|
||||
../../../../test_common/harness/conversions.c
|
||||
../../../../test_common/harness/rounding_mode.c
|
||||
../../../../test_common/harness/msvc9.c
|
||||
)
|
||||
|
||||
set(${MODULE_NAME}_LIBS harness-compat)
|
||||
|
||||
include(../../../CMakeCommon.txt)
|
||||
|
||||
Reference in New Issue
Block a user