cmake备忘
获取文件夹下的所有文件
aux_source_directory(<dir>, <variable>)
collects the names of all source files in the specified directory and store the list in the variable provided.
1
2
3
4AUX_SOURCE_DIRECTORY(libraries/api API_SRC)
AUX_SOURCE_DIRECTORY(libraries/net NET_SRC)
AUX_SOURCE_DIRECTORY(libraries/rpc RPC_SRC)