CMakeLists.txt 2.8 KB
Newer Older
L
LiFeng 已提交
1 2 3 4 5 6 7 8 9 10 11 12
project(iSulad_LLT)

SET(EXE lcr_rt_ops_llt)

add_executable(${EXE}
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cutils/utils.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cutils/utils_regex.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cutils/utils_verify.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cutils/utils_array.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cutils/utils_string.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cutils/utils_convert.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cutils/utils_file.c
W
wujing 已提交
13
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cutils/util_atomic.c
L
LiFeng 已提交
14 15
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/sha256/sha256.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/path.c
J
jackey_1024 已提交
16 17
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/map/map.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/map/rb_tree.c
L
LiFeng 已提交
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/libisulad.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/services/execution/spec/sysinfo.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cmd/commander.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cmd/isulad/arguments.c
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../test/image/oci/oci_llt_common.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../test/mocks/containers_store_mock.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../test/mocks/namespace_mock.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../test/mocks/container_unix_mock.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../test/mocks/engine_mock.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../test/mocks/isulad_config_mock.cc
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/runtime/lcr/lcr_rt_ops.c
    lcr_rt_ops_llt.cc)

target_include_directories(${EXE} PUBLIC
    ${GTEST_INCLUDE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/../../include
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cutils
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/map
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/services/execution/manager
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/services/execution/events
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/runtime
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/runtime/lcr
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/services/execution/spec
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/engines
    ${CMAKE_BINARY_DIR}/conf
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/sha256
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/config
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/cmd
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/services/graphdriver
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/console
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../test/mocks
    )

#set_target_properties(${EXE} PROPERTIES LINK_FLAGS)
J
jackey_1024 已提交
53
target_link_libraries(${EXE} ${GTEST_BOTH_LIBRARIES} ${GMOCK_LIBRARY} ${GMOCK_MAIN_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${ISULA_LIBUTILS_LIBRARY} -lgrpc++ -lprotobuf -lcrypto -lyajl -lz)