You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 608 B

5 years ago
5 years ago
6 years ago
123456789101112131415161718
  1. if (CMAKE_SYSTEM_NAME MATCHES "Windows")
  2. file(GLOB_RECURSE _COMMON_ALL_SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
  3. "trans.cc"
  4. "utils.cc"
  5. "duplex_pipe_win.cc"
  6. "thread_pool.cc"
  7. )
  8. else()
  9. file(GLOB_RECURSE _COMMON_ALL_SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
  10. "trans.cc"
  11. "utils.cc"
  12. "duplex_pipe.cc"
  13. "thread_pool.cc"
  14. )
  15. endif()
  16. set_property(SOURCE ${_COMMON_ALL_SRC_FILES} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_COMMON)
  17. add_library(_mindspore_common_obj OBJECT ${_COMMON_ALL_SRC_FILES})