[SWDEV-431345][SWDEV-432633] toplevel cmake for hip samples
Change-Id: If22e7e96604f184458cc6ab6bb9945152f9359e0
[ROCm/hip-tests commit: 7481de706f]
这个提交包含在:
1 父节点
6259d20646
当前提交
b821fdbfba
33 个文件已更改
+461
-89
没有与搜索条件相匹配的文件
@@ -47,9 +47,18 @@ set(CMAKE_CXX_COMPILER ${HIP_HIPCC_EXECUTABLE})
|
||||
set(CMAKE_CXX_LINKER ${HIP_HIPCC_EXECUTABLE})
|
||||
|
||||
# Create the excutable
|
||||
add_executable(bit_extract bit_extract.cpp)
|
||||
if(TARGET build_intro)
|
||||
set(EXCLUDE_OPTION EXCLUDE_FROM_ALL)
|
||||
else()
|
||||
set(EXCLUDE_OPTION )
|
||||
endif()
|
||||
add_executable(bit_extract ${EXCLUDE_OPTION} bit_extract.cpp)
|
||||
|
||||
target_include_directories(bit_extract PRIVATE ../../common)
|
||||
|
||||
# Link with HIP
|
||||
target_link_libraries(bit_extract hip::host)
|
||||
|
||||
if(TARGET build_intro)
|
||||
add_dependencies(build_intro bit_extract)
|
||||
endif()
|
||||
在新工单中引用
屏蔽一个用户