动态库的添加:
link_directories(${project_source_dir}/lib) #添加动态连接库的路径 target_link_libraries(project_name -lmxnet ) #添加libmxnet.so
静态库的添加:
add_library(mxnet static imported) set_property(target mxnet property imported_location /path/to/libmxnet.a) target_link_libraries(project_name mxnet ) #添加libmxnet.a