summaryrefslogtreecommitdiffstats
path: root/Tests/SourceFileIncludeDirProperty/CMakeLists.txt
blob: 786d5b6837bd3bf1165cc068a45fcee146651202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cmake_minimum_required(VERSION 3.0)

project(SourceFileIncludeDirProperty C)

#
# Check that source level include directory take
# precedence over target one

add_executable(SourceFileIncludeDirProperty main.c)

set_property (TARGET SourceFileIncludeDirProperty
  PROPERTY INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/target")

set_property (SOURCE main.c
  PROPERTY INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/source")