Fixup CMake to work with OpenCL 1.2 branch.

This commit is contained in:
Neil Henning
2018-01-11 17:39:03 +00:00
committed by Kévin Petit
parent 5413bcf52e
commit b4e39211d7
36 changed files with 1716 additions and 1230 deletions

View File

@@ -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}")