CMakeLists.txt 532 字节
Newer Older
Z
zhangjinchao01 已提交
1 2 3 4
# The utilities for paddle

file(GLOB UTIL_HEADERS . *.h)
file(GLOB UTIL_SOURCES . *.cpp)
Y
Yu Yang 已提交
5 6 7 8 9
if(APPLE)
    file(GLOB UTIL_ARCH_SOURCES . arch/osx/*.cpp)
else()
    file(GLOB UTIL_ARCH_SOURCES . arch/linux/*.cpp)
endif()
Z
zhangjinchao01 已提交
10
add_library(paddle_utils STATIC
Y
Yu Yang 已提交
11 12
        ${UTIL_SOURCES}
        ${UTIL_ARCH_SOURCES})
Z
zhangjinchao01 已提交
13
add_style_check_target(paddle_utils ${UTIL_HEADERS})
Y
Yu Yang 已提交
14 15
add_style_check_target(paddle_utils ${UTIL_SOURCES}
    ${UTIL_ARCH_SOURCES})
Z
zhangjinchao01 已提交
16 17 18
add_dependencies(paddle_utils gen_proto_cpp)
if(WITH_TESTING)
    add_subdirectory(tests)
Y
Yu Yang 已提交
19
endif()