summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_compile_features/CMakeLists.txt
blob: ad76411a647cd80aa7bbd73ae7c9911fa5728605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.0)
project(target_compile_features)

set(CMAKE_VERBOSE_MAKEFILE ON)

add_executable(target_compile_features main.cpp)
target_compile_features(target_compile_features
  PRIVATE cxx_auto_type
)

add_library(lib_auto_type lib_auto_type.cpp)
target_compile_features(lib_auto_type
  PUBLIC cxx_auto_type
)

add_executable(lib_user lib_user.cpp)
target_link_libraries(lib_user lib_auto_type)