diff options
| author | liuyu <[email protected]> | 2024-07-07 22:55:37 -0400 |
|---|---|---|
| committer | liuyu <[email protected]> | 2024-07-07 22:55:37 -0400 |
| commit | ee1cbf37fc0c08895ed70723029bfbce5f68c060 (patch) | |
| tree | c6437570be6a0b9e2fa4797dbcb158eb260766db /bbq/src/CMakeLists.txt | |
| parent | d122b40e7633d24ea832175a8339324c9f43beaa (diff) | |
Diffstat (limited to 'bbq/src/CMakeLists.txt')
| -rw-r--r-- | bbq/src/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bbq/src/CMakeLists.txt b/bbq/src/CMakeLists.txt new file mode 100644 index 0000000..fa91e18 --- /dev/null +++ b/bbq/src/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.0) +project(BBQ_LIB) + +file(GLOB SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/*.c) #搜索当前cmake所在目录下的c文件 +set(LIBRARY_OUTPUT_PATH ${LIB_PATH}) #设置库生成目录 + +add_library(${BBQ_LIB} STATIC ${SRC_LIST}) #生成静态库 +# add_library(${BBQ_LIB} SHARED ${SRC_LIST}) #生成动态库 + +target_link_libraries(${BBQ_LIB} numa) # 链接库 |
