2017-08-09 20:52:55 +00:00
|
|
|
|
|
|
|
# TODO? Maybe recursive collect on all deps
|
|
|
|
|
|
|
|
get_property (dirs1 TARGET dbms PROPERTY INCLUDE_DIRECTORIES)
|
|
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
|
2017-11-21 19:17:24 +00:00
|
|
|
get_property (dirs1 TARGET clickhouse_common_io PROPERTY INCLUDE_DIRECTORIES)
|
2017-11-17 19:19:49 +00:00
|
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
|
2017-08-09 20:52:55 +00:00
|
|
|
get_property (dirs1 TARGET common PROPERTY INCLUDE_DIRECTORIES)
|
|
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
|
2018-11-21 19:20:27 +00:00
|
|
|
get_property (dirs1 TARGET cityhash PROPERTY INCLUDE_DIRECTORIES)
|
|
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
|
2017-08-17 23:02:51 +00:00
|
|
|
if (USE_INTERNAL_BOOST_LIBRARY)
|
|
|
|
get_property (dirs1 TARGET ${Boost_PROGRAM_OPTIONS_LIBRARY} PROPERTY INCLUDE_DIRECTORIES)
|
|
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
endif ()
|
2017-08-17 18:17:17 +00:00
|
|
|
|
2017-10-13 18:58:19 +00:00
|
|
|
if (USE_INTERNAL_POCO_LIBRARY)
|
|
|
|
list(APPEND dirs "./contrib/poco/Foundation/include")
|
|
|
|
endif ()
|
|
|
|
|
2017-06-23 20:22:35 +00:00
|
|
|
list(REMOVE_DUPLICATES dirs)
|
2016-12-06 18:04:10 +00:00
|
|
|
file (WRITE ${CMAKE_CURRENT_BINARY_DIR}/include_directories.txt "")
|
|
|
|
foreach (dir ${dirs})
|
2017-04-01 07:20:54 +00:00
|
|
|
string (REPLACE "${ClickHouse_SOURCE_DIR}" "." dir "${dir}")
|
|
|
|
file (APPEND ${CMAKE_CURRENT_BINARY_DIR}/include_directories.txt "-I ${dir} ")
|
2016-12-06 18:04:10 +00:00
|
|
|
endforeach ()
|