Skip to content

Commit

Permalink
[doc] add SGSSGene to contributors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Mar 6, 2024
1 parent b8e1443 commit 960e347
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ Contributors:
- [baoguo-ma1](https://github.com/baoguo-ma1)
- [naonao](https://github.com/naonao-cola)
- [xin zong](https://github.com/zongxin1993)
- [SGSSGene](https://github.com/SGSSGene)

感谢以上朋友,为CGraph项目做出的贡献,排名以贡献时间前后为顺序。
4 changes: 2 additions & 2 deletions cmake/CGraph-env-include.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ ELSEIF(WIN32)
# 本工程也支持在windows平台上的mingw环境使用
ENDIF()

include_directories(${CGRAPH_PROJECT_ROOT_DIR}/src/) # 直接加入"CGraph.h"文件对应的位置

# 以下三选一,本地编译执行,推荐OBJECT方式
add_library(CGraph OBJECT ${CGRAPH_PROJECT_SRC_LIST}) # 通过代码编译
# add_library(CGraph SHARED ${CGRAPH_PROJECT_SRC_LIST}) # 编译libCGraph动态库
# add_library(CGraph STATIC ${CGRAPH_PROJECT_SRC_LIST}) # 编译libCGraph静态库

target_include_directories(CGraph PUBLIC ${CGRAPH_PROJECT_ROOT_DIR}/src/) # 直接加入"CGraph.h"文件对应的位置
4 changes: 2 additions & 2 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(CGRAPH_EXAMPLE_LIST

foreach(example ${CGRAPH_EXAMPLE_LIST})
add_executable(${example}
$<TARGET_OBJECTS:CGraph>
${example}.cpp
)
target_link_libraries(${example} PRIVATE CGraph)
endforeach()
endforeach()
3 changes: 1 addition & 2 deletions tutorial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ set(CGRAPH_TUTORIAL_LIST
foreach(tut ${CGRAPH_TUTORIAL_LIST})
add_executable(${tut}
# 在自己的工程中引入CGraph功能,仅需引入 CGraph-env-include.cmake 后,加入这一句话即可
$<TARGET_OBJECTS:CGraph>
${tut}.cpp
)
target_link_libraries(${tut} PRIVATE CGraph)

endforeach()

0 comments on commit 960e347

Please sign in to comment.