summaryrefslogtreecommitdiffstats
path: root/Tests/HIP/InferHipLang1/CMakeLists.txt
blob: 63d77fdaa48d04c946ff65585a20503b109a7f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 INTERFACE)
target_sources(InterfaceWithHIP INTERFACE interface.hip main.cxx)
target_compile_features(InterfaceWithHIP INTERFACE hip_std_14)
target_compile_features(InterfaceWithHIP INTERFACE cxx_std_11)

add_executable(HIPInferHipLang1 )
target_link_libraries(HIPInferHipLang1 PRIVATE InterfaceWithHIP)