mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Rename harness .c sources to .cpp where necessary (#513)
Remove hacks from harness CMakeLists.txt to force language. Contributes to KhronosGroup/OpenCL-CTS#25
This commit is contained in:
@@ -1,32 +1,28 @@
|
|||||||
|
|
||||||
set(HARNESS_COMMON_SOURCES
|
set(HARNESS_COMMON_SOURCES
|
||||||
harness/threadTesting.c
|
harness/threadTesting.cpp
|
||||||
harness/typeWrappers.cpp
|
harness/typeWrappers.cpp
|
||||||
harness/mt19937.c
|
harness/mt19937.c
|
||||||
harness/conversions.c
|
harness/conversions.cpp
|
||||||
harness/rounding_mode.c
|
harness/rounding_mode.c
|
||||||
harness/msvc9.c
|
harness/msvc9.c
|
||||||
)
|
)
|
||||||
|
|
||||||
set_source_files_properties(${HARNESS_COMMON_SOURCES} PROPERTIES LANGUAGE CXX)
|
|
||||||
|
|
||||||
add_library(harness-common STATIC ${HARNESS_COMMON_SOURCES})
|
add_library(harness-common STATIC ${HARNESS_COMMON_SOURCES})
|
||||||
|
|
||||||
set(HARNESS_SOURCES
|
set(HARNESS_SOURCES
|
||||||
harness/crc32.c
|
harness/crc32.c
|
||||||
harness/errorHelpers.c
|
harness/errorHelpers.cpp
|
||||||
harness/genericThread.cpp
|
harness/genericThread.cpp
|
||||||
harness/imageHelpers.cpp
|
harness/imageHelpers.cpp
|
||||||
harness/kernelHelpers.c
|
harness/kernelHelpers.cpp
|
||||||
harness/deviceInfo.cpp
|
harness/deviceInfo.cpp
|
||||||
harness/os_helpers.cpp
|
harness/os_helpers.cpp
|
||||||
harness/parseParameters.cpp
|
harness/parseParameters.cpp
|
||||||
harness/testHarness.c
|
harness/testHarness.cpp
|
||||||
harness/ThreadPool.c
|
harness/ThreadPool.cpp
|
||||||
miniz/miniz.c
|
miniz/miniz.c
|
||||||
)
|
)
|
||||||
|
|
||||||
set_source_files_properties(${HARNESS_SOURCES} PROPERTIES LANGUAGE CXX)
|
|
||||||
|
|
||||||
add_library(harness STATIC ${HARNESS_SOURCES})
|
add_library(harness STATIC ${HARNESS_SOURCES})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user