CMakeLists.txt 2.2 KB
Newer Older
W
sdk-cpp  
wangguibao 已提交
1 2 3
include(src/CMakeLists.txt)
include(proto/CMakeLists.txt)
add_library(sdk-cpp ${sdk_cpp_srcs})
W
wangguibao 已提交
4
add_dependencies(sdk-cpp configure proto_configure)
W
sdk-cpp  
wangguibao 已提交
5 6 7
target_include_directories(sdk-cpp PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}/include
        ${CMKAE_CURRENT_BINARY_DIR}/
W
wangguibao 已提交
8
        ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure
W
sdk-cpp  
wangguibao 已提交
9
        ${CMAKE_CURRENT_LIST_DIR}/../configure
W
wangguibao 已提交
10
        ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include
W
sdk-cpp  
wangguibao 已提交
11 12 13
        ${CMAKE_CURRENT_LIST_DIR}/../ullib/include
        ${CMAKE_CURRENT_BINARY_DIR}/../bsl/include
        )
W
wangguibao 已提交
14
target_link_libraries(sdk-cpp brpc configure proto_configure protobuf leveldb)
W
sdk-cpp  
wangguibao 已提交
15 16 17 18 19

add_executable(ximage ${CMAKE_CURRENT_LIST_DIR}/demo/ximage.cpp)
target_include_directories(ximage PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}/include
        ${CMAKE_CURRENT_BINARY_DIR}
W
wangguibao 已提交
20
        ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure
W
sdk-cpp  
wangguibao 已提交
21
        ${CMAKE_CURRENT_LIST_DIR}/../configure
W
wangguibao 已提交
22
        ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include
W
sdk-cpp  
wangguibao 已提交
23 24 25 26 27 28 29 30 31
        ${CMAKE_CURRENT_LIST_DIR}/../ullib/include
        ${CMAKE_CURRENT_BINARY_DIR}/../bsl/include)
target_link_libraries(ximage sdk-cpp -lpthread -lcrypto -lm -lrt -lssl -ldl
        -lz)

add_executable(mapcnn_dense ${CMAKE_CURRENT_LIST_DIR}/demo/mapcnn_dense.cpp)
target_include_directories(mapcnn_dense PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}/include
        ${CMAKE_CURRENT_BINARY_DIR}/
W
wangguibao 已提交
32
        ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure
W
sdk-cpp  
wangguibao 已提交
33
        ${CMAKE_CURRENT_LIST_DIR}/../configure
W
wangguibao 已提交
34
        ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include
W
sdk-cpp  
wangguibao 已提交
35 36 37 38 39 40 41 42 43
        ${CMAKE_CURRENT_LIST_DIR}/../ullib/include
        ${CMAKE_CURRENT_BINARY_DIR}/../bsl/include)
target_link_libraries(mapcnn_dense sdk-cpp -lpthread -lcrypto -lm -lrt -lssl
        -ldl -lz)

add_executable(mapcnn_sparse ${CMAKE_CURRENT_LIST_DIR}/demo/mapcnn_sparse.cpp)
target_include_directories(mapcnn_sparse PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}/include
        ${CMAKE_CURRENT_BINARY_DIR}/
W
wangguibao 已提交
44
        ${CMAKE_CURRENT_BINARY_DIR}/../proto_configure
W
sdk-cpp  
wangguibao 已提交
45
        ${CMAKE_CURRENT_LIST_DIR}/../configure
W
wangguibao 已提交
46
        ${CMAKE_CURRENT_LIST_DIR}/../proto_configure/include
W
sdk-cpp  
wangguibao 已提交
47 48 49 50 51
        ${CMAKE_CURRENT_LIST_DIR}/../ullib/include
        ${CMAKE_CURRENT_BINARY_DIR}/../bsl/include)
target_link_libraries(mapcnn_sparse sdk-cpp -lpthread -lcrypto -lm -lrt -lssl
        -ldl -lz)