win 對應 linux
.lib
.a
.dll 注* .solinux
注:win中若使用.dll須要一個附帶的引入庫.lib
win-gcc中若使用.dll須要一個附帶的因入庫.dll.a.net
1、blog
INCLUDE_DIRECTORIES(E:\CmakeProject\include\hello)gcc
TARGET_LINK_LIBRARIES(main E:\CmakeProject\lib\hello\libhello.dll.a)gc
使用動態庫.dllim
2、make
INCLUDE_DIRECTORIES(E:\CmakeProject\include\hello)
TARGET_LINK_LIBRARIES(main E:\CmakeProject\lib\hello\libhello.a)dll
使用靜態庫.a
---------------------
做者:imsaws
來源:CSDN
原文:https://blog.csdn.net/imsaws/article/details/16115247
版權聲明:本文爲博主原創文章,轉載請附上博文連接!ps