CMakeLists.txt 1.5 KB
Newer Older
W
wangguibao 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
LIST(APPEND configure_srcs
    ${CMAKE_CURRENT_LIST_DIR}/FileReloader.cpp
    ${CMAKE_CURRENT_LIST_DIR}/ConfigReloader.cpp
    ${CMAKE_CURRENT_LIST_DIR}/CmdOption.cpp
    ${CMAKE_CURRENT_LIST_DIR}/ConfigError.cpp
    ${CMAKE_CURRENT_LIST_DIR}/ConfigGroup.cpp
    ${CMAKE_CURRENT_LIST_DIR}/ConfigUnit.cpp
    ${CMAKE_CURRENT_LIST_DIR}/Configure.cpp
    ${CMAKE_CURRENT_LIST_DIR}/constraint/Constraint.cpp
    ${CMAKE_CURRENT_LIST_DIR}/constraint/ConstraintFunction.cpp
    ${CMAKE_CURRENT_LIST_DIR}/constraint/cc_default.cpp
    ${CMAKE_CURRENT_LIST_DIR}/reader/RawData.cpp
    ${CMAKE_CURRENT_LIST_DIR}/reader/Reader.cpp
    # ${CMAKE_CURRENT_LIST_DIR}/utils/init.cpp
    ${CMAKE_CURRENT_LIST_DIR}/utils/trans.cpp
    ${CMAKE_CURRENT_LIST_DIR}/cfgext.cpp
    ${CMAKE_CURRENT_LIST_DIR}/cfgflag.cpp
    ${CMAKE_CURRENT_LIST_DIR}/compiler/src/idl.c
    ${CMAKE_CURRENT_LIST_DIR}/compiler/src/idl_lex.c
    ${CMAKE_CURRENT_LIST_DIR}/compiler/src/idl_gram.c
)

W
wangguibao 已提交
23 24 25 26
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_LIST_DIR}/compiler/src/idl.c
        ${CMAKE_CURRENT_LIST_DIR}/compiler/src/idl_lex.c
        ${CMAKE_CURRENT_LIST_DIR}/compiler/src/idl_gram.c PROPERTIES LANGUAGE CXX)

W
wangguibao 已提交
27 28 29 30 31 32 33 34
add_library(configure ${configure_srcs})
add_dependencies(configure bsl brpc ullib spreg)
target_include_directories(configure PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}/
        ${CMAKE_CURRENT_LIST_DIR}/compiler/src
        ${CMAKE_CURRENT_LIST_DIR}/../ullib/include
        ${CMAKE_CURRENT_LIST_DIR}/../spreg/
        ${CMAKE_CURRENT_BINARY_DIR}/../bsl/include)
W
serving  
wangguibao 已提交
35
target_link_libraries(configure bsl ullib pcre spreg)