mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +00:00
Add OpenCLCTS target and install component to CMake
This commit is contained in:
committed by
Kévin Petit
parent
b4e39211d7
commit
b67a5f3761
@@ -1,46 +1,51 @@
|
||||
if(WIN32)
|
||||
|
||||
set(D3D10_INCLUDE_DIR $ENV{NV_TOOLS}/sdk/DirectX_Aug2009/Include)
|
||||
|
||||
if(${ARCH} STREQUAL "i686")
|
||||
set(D3D10_LIB_DIR $ENV{NV_TOOLS}/sdk/DirectX_Aug2009/Lib/x86)
|
||||
endif(${ARCH} STREQUAL "i686")
|
||||
|
||||
if(${ARCH} STREQUAL "x86_64")
|
||||
set(D3D10_LIB_DIR $ENV{NV_TOOLS}/sdk/DirectX_Aug2009/Lib/x64)
|
||||
endif(${ARCH} STREQUAL "x86_64")
|
||||
|
||||
list(APPEND CLConform_INCLUDE_DIR ${D3D10_INCLUDE_DIR})
|
||||
include_directories (${CLConform_SOURCE_DIR}/test_common/harness
|
||||
${CLConform_INCLUDE_DIR} )
|
||||
link_directories(${CL_LIB_DIR}, ${D3D10_LIB_DIR})
|
||||
|
||||
list(APPEND CLConform_LIBRARIES d3d10 dxgi)
|
||||
|
||||
|
||||
set(D3D10_SOURCES
|
||||
buffer.cpp
|
||||
texture2d.cpp
|
||||
texture3d.cpp
|
||||
misc.cpp
|
||||
main.cpp
|
||||
harness.cpp
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/conversions.c
|
||||
../../test_common/harness/msvc9.c)
|
||||
|
||||
add_executable(conformance_test_d3d10
|
||||
${D3D10_SOURCES})
|
||||
|
||||
set_source_files_properties(
|
||||
${D3D10_SOURCES}
|
||||
PROPERTIES LANGUAGE CXX)
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_d3d10
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
endif(WIN32)
|
||||
if(WIN32)
|
||||
|
||||
set(D3D10_INCLUDE_DIR $ENV{NV_TOOLS}/sdk/DirectX_Aug2009/Include)
|
||||
|
||||
if(${ARCH} STREQUAL "i686")
|
||||
set(D3D10_LIB_DIR $ENV{NV_TOOLS}/sdk/DirectX_Aug2009/Lib/x86)
|
||||
endif(${ARCH} STREQUAL "i686")
|
||||
|
||||
if(${ARCH} STREQUAL "x86_64")
|
||||
set(D3D10_LIB_DIR $ENV{NV_TOOLS}/sdk/DirectX_Aug2009/Lib/x64)
|
||||
endif(${ARCH} STREQUAL "x86_64")
|
||||
|
||||
list(APPEND CLConform_INCLUDE_DIR ${D3D10_INCLUDE_DIR})
|
||||
include_directories (${CLConform_SOURCE_DIR}/test_common/harness
|
||||
${CLConform_INCLUDE_DIR} )
|
||||
link_directories(${CL_LIB_DIR}, ${D3D10_LIB_DIR})
|
||||
|
||||
list(APPEND CLConform_LIBRARIES d3d10 dxgi)
|
||||
|
||||
|
||||
set(D3D10_SOURCES
|
||||
buffer.cpp
|
||||
texture2d.cpp
|
||||
texture3d.cpp
|
||||
misc.cpp
|
||||
main.cpp
|
||||
harness.cpp
|
||||
../../test_common/harness/errorHelpers.c
|
||||
../../test_common/harness/threadTesting.c
|
||||
../../test_common/harness/testHarness.c
|
||||
../../test_common/harness/kernelHelpers.c
|
||||
../../test_common/harness/mt19937.c
|
||||
../../test_common/harness/conversions.c
|
||||
../../test_common/harness/msvc9.c)
|
||||
|
||||
add_executable(conformance_test_d3d10
|
||||
${D3D10_SOURCES})
|
||||
|
||||
set_source_files_properties(
|
||||
${D3D10_SOURCES}
|
||||
PROPERTIES LANGUAGE CXX)
|
||||
|
||||
TARGET_LINK_LIBRARIES(conformance_test_d3d10
|
||||
${CLConform_LIBRARIES})
|
||||
|
||||
add_dependencies(OpenCLCTS conformance_test_d3d10)
|
||||
install(TARGETS conformance_test_d3d10
|
||||
DESTINATION "${CLConf_OUT_DIR}"
|
||||
COMPONENT OpenCLCTS)
|
||||
|
||||
endif(WIN32)
|
||||
|
||||
Reference in New Issue
Block a user