CMakeLists.txt 607 字节
Newer Older
W
wangguibao 已提交
1 2 3 4 5 6
FILE(GLOB fluid_cpu_engine_srcs ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
add_library(fluid_cpu_engine ${fluid_cpu_engine_srcs})
target_include_directories(fluid_cpu_engine PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}/include
        ${PADDLE_INCLUDE_DIR}
        ${CMAKE_BINARY_DIR}/Paddle/fluid_install_dir/)
W
wangguibao 已提交
7 8
add_dependencies(fluid_cpu_engine pdserving extern_paddle configure)
target_link_libraries(fluid_cpu_engine pdserving paddle_fluid -liomp5 -lmklml_intel -lpthread -lcrypto -lm -lrt -lssl -ldl -lz)
W
wangguibao 已提交
9

10 11 12 13
install(TARGETS fluid_cpu_engine 
        ARCHIVE DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/lib
        )