mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 07:09:03 +00:00
Fixup CMake to work with OpenCL 1.2 branch.
This commit is contained in:
committed by
Kévin Petit
parent
5413bcf52e
commit
b4e39211d7
@@ -1,37 +1,76 @@
|
||||
add_executable(conformance_test_headers
|
||||
test_headers.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_cl_h
|
||||
test_cl.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_cl_platform_h
|
||||
test_cl_platform.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_cl_gl_h
|
||||
test_cl_gl.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_opencl_h
|
||||
test_opencl.h.c
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "" )
|
||||
set(CMAKE_CXX_FLAGS "" )
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_headers
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_cl_h
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_cl_platform_h
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_cl_gl_h
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_opencl_h
|
||||
${CLConform_LIBRARIES})
|
||||
add_executable(conformance_test_headers
|
||||
test_headers.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_cl_h
|
||||
test_cl.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_cl_platform_h
|
||||
test_cl_platform.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_cl_gl_h
|
||||
test_cl_gl.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_opencl_h
|
||||
test_opencl.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_cl_h_c99
|
||||
test_cl.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_cl_platform_h_c99
|
||||
test_cl_platform.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_cl_gl_h_c99
|
||||
test_cl_gl.h.c
|
||||
)
|
||||
|
||||
add_executable(conformance_test_opencl_h_c99
|
||||
test_opencl.h.c
|
||||
)
|
||||
|
||||
set_target_properties(conformance_test_cl_h_c99
|
||||
conformance_test_cl_platform_h_c99
|
||||
conformance_test_cl_gl_h_c99
|
||||
conformance_test_opencl_h_c99
|
||||
PROPERTIES COMPILE_FLAGS "-std=c99"
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_headers
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_cl_h
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_cl_platform_h
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_cl_gl_h
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_opencl_h
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_cl_h_c99
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_cl_platform_h_c99
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_cl_gl_h_c99
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_opencl_h_c99
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
install(TARGETS conformance_test_headers conformance_test_cl_h
|
||||
conformance_test_cl_platform_h conformance_test_cl_gl_h
|
||||
conformance_test_opencl_h conformance_test_cl_h_c99
|
||||
conformance_test_cl_platform_h_c99 conformance_test_cl_gl_h_c99
|
||||
conformance_test_opencl_h_c99
|
||||
DESTINATION "${CLConf_OUT_DIR}")
|
||||
|
||||
Reference in New Issue
Block a user