--- tools/train/CMakeLists.txt.orig 2020-05-23 09:17:28 UTC +++ tools/train/CMakeLists.txt @@ -28,6 +28,7 @@ else() add_library(MNNTrain ${MNN_LIBARY_TYPE} ${GRAD} ${BASIC_INCLUDE} ${PARAMETER} ${OPTIMIZER} ${MODULES} ${DATALOADER} ${TRANSFORMER} ${MODELS} ${DATASETS}) endif() target_link_libraries(MNNTrain ${MNN_DEPS}) +install(TARGETS MNNTrain LIBRARY DESTINATION lib) add_executable(transformer.out ${CMAKE_CURRENT_LIST_DIR}/source/exec/transformerExecution.cpp) target_link_libraries(transformer.out MNNTrain)