- set(LIBRARY_NAME zxmessage)
- # 获取当前目录下的所有源文件
- aux_source_directory(${CMAKE_CURRENT_LIST_DIR} GLOB_RECURSE)
- set(LIBRARY_SOURCE_LIST
- ${GLOB_RECURSE}
- )
- set(LIBRARY_DEPEND_LIST)
- add_library(${LIBRARY_NAME} ${LIBRARY_SOURCE_LIST})
- target_link_libraries(${LIBRARY_NAME} PUBLIC ${LIBRARY_DEPEND_LIST})
|