You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
429 B
16 lines
429 B
7 years ago
|
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")
|