blob: 8bc0f6c4c709e668886a4e6095a15803d79ebcc0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
cmake_minimum_required (VERSION 2.6)
project(IncludeDirectories)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \"-I${CMAKE_SOURCE_DIR}/Flags\"")
include_directories(${CMAKE_SOURCE_DIR}/IncDir)
set_source_files_properties(main.cpp PROPERTIES COMPILE_FLAGS
"\"-I${CMAKE_SOURCE_DIR}/SrcProp\"")
add_executable(IncludeDirectories main.cpp)
set_target_properties(IncludeDirectories
PROPERTIES COMPILE_FLAGS "\"-I${CMAKE_SOURCE_DIR}/TarProp\"")
|