Skip to content

Commit

Permalink
Revert install tree modifications
Browse files Browse the repository at this point in the history
This reverts the changes made on KhronosGroup#88 that modified the install location
of the samples
  • Loading branch information
Beanavil committed Oct 9, 2024
1 parent dbcae2c commit 200e8fb
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,17 @@ macro(add_sample)
)

foreach(CONFIG ${OPENCL_SAMPLE_CONFIGS})
install(TARGETS ${OPENCL_SAMPLE_TARGET} CONFIGURATIONS ${CONFIG} DESTINATION ${CMAKE_INSTALL_BINDIR}/${CONFIG})
install(FILES ${OPENCL_SAMPLE_KERNELS} CONFIGURATIONS ${CONFIG} DESTINATION ${CMAKE_INSTALL_BINDIR}/${CONFIG})
install(FILES ${OPENCL_SAMPLE_SHADERS} CONFIGURATIONS ${CONFIG} DESTINATION ${CMAKE_INSTALL_BINDIR}/${CONFIG})
if(OPENCL_SDK_TEST_SAMPLES AND OPENCL_SAMPLE_TEST)
add_test(
NAME "${OPENCL_SAMPLE_TARGET}_${CONFIG}"
COMMAND ${OPENCL_SAMPLE_TARGET}
CONFIGURATIONS ${CONFIG}
WORKING_DIRECTORY "$<TARGET_FILE_DIR:${OPENCL_SAMPLE_TARGET}>"
)
endif()
install(TARGETS ${OPENCL_SAMPLE_TARGET} CONFIGURATIONS ${CONFIG} DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES ${OPENCL_SAMPLE_KERNELS} CONFIGURATIONS ${CONFIG} DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES ${OPENCL_SAMPLE_SHADERS} CONFIGURATIONS ${CONFIG} DESTINATION ${CMAKE_INSTALL_BINDIR})
endforeach()
if(OPENCL_SDK_TEST_SAMPLES AND OPENCL_SAMPLE_TEST)
add_test(
NAME ${OPENCL_SAMPLE_TARGET}
COMMAND ${OPENCL_SAMPLE_TARGET}
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
)
endif()
endmacro()


Expand Down

0 comments on commit 200e8fb

Please sign in to comment.