any.cmake 662 字节
Newer Older
1 2 3 4 5 6 7
INCLUDE(ExternalProject)

SET(ANY_SOURCE_DIR ${THIRD_PARTY_PATH}/any)

INCLUDE_DIRECTORIES(${ANY_SOURCE_DIR}/src/linb_any)

ExternalProject_Add(
L
liaogang 已提交
8
    extern_lib_any
9 10 11 12 13 14 15 16 17 18 19
    ${EXTERNAL_PROJECT_LOG_ARGS}
    GIT_REPOSITORY  "https://github.com/thelink2012/any.git"
    GIT_TAG         "8fef1e93710a0edf8d7658999e284a1142c4c020"
    PREFIX          ${ANY_SOURCE_DIR}
    UPDATE_COMMAND  ""
    CONFIGURE_COMMAND ""
    BUILD_COMMAND     ""
    INSTALL_COMMAND   ""
    TEST_COMMAND      ""
)

L
liaogang 已提交
20 21 22
ADD_LIBRARY(lib_any INTERFACE)
ADD_DEPENDENCIES(lib_any extern_lib_any)

23
add_definitions(-DANY_IMPL_ANY_CAST_MOVEABLE)
L
liaogang 已提交
24
LIST(APPEND external_project_dependencies extern_lib_any)