# BUILD the load and run for liteinclude_directories(PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/lite/load_and_run/src>)file(GLOB_RECURSE SOURCES ./*.cpp)add_executable(load_and_run ${SOURCES})target_link_libraries(load_and_run lite_static)target_link_libraries(load_and_run megbrain)target_link_libraries(load_and_run gflags)if(LITE_BUILD_WITH_RKNPU)#rknn sdk1.0.0 depend on libc++_shared, use gold to remove NEEDED so symbol checktarget_link_options(load_and_run PRIVATE "-fuse-ld=gold")endif()if(MGE_WITH_ROCM)# FIXME: hip obj can not find cpp obj only through lite_statictarget_link_libraries(load_and_run megdnn)endif()if(UNIX)if(APPLE OR ANDROID)target_link_libraries(load_and_run dl)else()target_link_libraries(load_and_run dl rt)endif()endif()install(TARGETS load_and_run EXPORT ${LITE_EXPORT_TARGETS} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})