[SWDEV-431345][SWDEV-432633] toplevel cmake for hip samples

Change-Id: If22e7e96604f184458cc6ab6bb9945152f9359e0
Cette révision appartient à :
Rahul Manocha a révisé 2023-12-05 11:36:15 -05:00
1 Parent 4a60fe5fd1
révision 7481de706f
33 fichiers modifiés
+461 -89

Aucun fichier ne correspond à votre recherche

+10 -1
Voir le fichier
@@ -38,9 +38,18 @@ set(CMAKE_CXX_COMPILER ${HIP_HIPCC_EXECUTABLE})
set(CMAKE_CXX_LINKER ${HIP_HIPCC_EXECUTABLE})
# Create the excutable
add_executable(2dshfl 2dshfl.cpp)
if(TARGET build_cookbook)
set(EXCLUDE_OPTION EXCLUDE_FROM_ALL)
else()
set(EXCLUDE_OPTION )
endif()
add_executable(2dshfl ${EXCLUDE_OPTION} 2dshfl.cpp)
target_include_directories(2dshfl PRIVATE ../../common)
# Link with HIP
target_link_libraries(2dshfl hip::host)
if(TARGET build_cookbook)
add_dependencies(build_cookbook 2dshfl)
endif()