mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
85d783c247
* Remove config_common.h * Refactor libcpuid contrib * Remove support for libcpuinfo * Define USE_CPUID in Arcadia * Refactor Poco libraries
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
|
|
# TODO? Maybe recursive collect on all deps
|
|
|
|
get_property (dirs1 TARGET dbms PROPERTY INCLUDE_DIRECTORIES)
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
get_property (dirs1 TARGET clickhouse_common_io PROPERTY INCLUDE_DIRECTORIES)
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
get_property (dirs1 TARGET common PROPERTY INCLUDE_DIRECTORIES)
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
get_property (dirs1 TARGET cityhash PROPERTY INCLUDE_DIRECTORIES)
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
get_property (dirs1 TARGET roaring PROPERTY INCLUDE_DIRECTORIES)
|
|
list(APPEND dirs ${dirs1})
|
|
|
|
if (TARGET double-conversion)
|
|
get_property (dirs1 TARGET double-conversion PROPERTY INCLUDE_DIRECTORIES)
|
|
list(APPEND dirs ${dirs1})
|
|
endif ()
|
|
|
|
if (TARGET ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
|
get_property (dirs1 TARGET ${Boost_PROGRAM_OPTIONS_LIBRARY} PROPERTY INCLUDE_DIRECTORIES)
|
|
list(APPEND dirs ${dirs1})
|
|
endif ()
|
|
|
|
list(REMOVE_DUPLICATES dirs)
|
|
file (WRITE ${CMAKE_CURRENT_BINARY_DIR}/include_directories.txt "")
|
|
foreach (dir ${dirs})
|
|
string (REPLACE "${ClickHouse_SOURCE_DIR}" "." dir "${dir}")
|
|
file (APPEND ${CMAKE_CURRENT_BINARY_DIR}/include_directories.txt "-I ${dir} ")
|
|
endforeach ()
|