summaryrefslogtreecommitdiffstats
path: root/Tests/HIP/InferHipLang2/CMakeLists.txt
blob: a8a55b7b0a6e0d615dd6745ff7457b63e8b4d7e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_minimum_required(VERSION 3.18)
project(InferHipLang C CXX HIP)

#Goal for this example:
#make sure that we understand that HIP is the correct link language
add_library(InterfaceWithHIP OBJECT)
target_sources(InterfaceWithHIP PRIVATE interface.hip main.cxx)
target_compile_features(InterfaceWithHIP INTERFACE hip_std_14)
target_compile_features(InterfaceWithHIP INTERFACE cxx_std_11)
set_property(TARGET InterfaceWithHIP PROPERTY HIP_ARCHITECTURES gfx900)

add_executable(HIPInferHipLang2 )
target_link_libraries(HIPInferHipLang2 PRIVATE InterfaceWithHIP)