CMakeLists.txt 925 字节
Newer Older
S
superjom 已提交
1 2 3 4 5 6 7 8 9
cmake_minimum_required(VERSION 3.8)
project(VisualDL)

set(CMAKE_CXX_STANDARD 11)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(thirdparty/local/include)
add_subdirectory(thirdparty/pybind11-2.2.1)

S
superjom 已提交
10 11
link_directories(thirdparty/local/lib)

S
superjom 已提交
12 13 14 15 16 17 18 19
set(SOURCE_FILES
        visualdl/backend/storage/storage.cc visualdl/backend/storage/storage.h
        visualdl/backend/storage/storage.pb.h
        visualdl/backend/storage/storage.pb.cc
        )

add_library(storage visualdl/backend/storage/storage.cc
            visualdl/backend/storage/storage.pb.cc)
S
superjom 已提交
20 21 22 23 24 25 26 27 28 29
add_library(c_api visualdl/backend/logic/c_api.cc)
add_library(sdk visualdl/backend/logic/sdk.cc)
add_library(im visualdl/backend/logic/im.cc)

add_executable(vl_test
        visualdl/backend/test.cc
        visualdl/backend/logic/im_test.cc)
target_link_libraries(vl_test storage im gtest glog protobuf gflags)
add_executable(VisualDL ${SOURCE_FILES})