blob: b01b9d7f0bdab6e8fd6968a28152ff17e5482940 [file] [log] [blame]
cmake_minimum_required(VERSION 3.18)
project(ConsumeCompileFeatures CXX CUDA)
#Goal for this example:
#build a c++11 library that express a c++11 public compile feature
#link a cuda library and verify it builds with c++11 enabled
#build a standalone c++/cuda mixed executable where we express a c++11
#compile feature.
add_library(CudaConsumeLib STATIC static.cpp
target_compile_features(CudaConsumeLib PUBLIC cxx_nullptr)
target_link_libraries(CudaConsumeCompileFeatures PRIVATE CudaConsumeLib)