CMakeLists.txt 332 B

1234567891011121314
  1. set(LIBRARY_NAME zxmessage)
  2. # 获取当前目录下的所有源文件
  3. aux_source_directory(${CMAKE_CURRENT_LIST_DIR} GLOB_RECURSE)
  4. set(LIBRARY_SOURCE_LIST
  5. ${GLOB_RECURSE}
  6. )
  7. set(LIBRARY_DEPEND_LIST)
  8. add_library(${LIBRARY_NAME} ${LIBRARY_SOURCE_LIST})
  9. target_link_libraries(${LIBRARY_NAME} PUBLIC ${LIBRARY_DEPEND_LIST})