編譯forte,引入第三方靜態庫

2021-10-06 23:55:13 字數 718 閱讀 5998

forte 的編譯由cmake-gui配置生成,所以即使是在開發工具中新增引用,或者標頭檔案引用,也是全無效果,

由於對cmake不熟,問了別人也沒問出個結果,還是自己動手,才能豐衣足食。

in cmakelist.txt under forte/src ,$是靜態庫的路徑,在gui中新增即可

if(forte_build_executable)

add_executable (forte $$ $)

set_target_properties(forte properties link_flags "$")

target_link_libraries (forte $)

target_link_libraries (forte $)

add_dependencies (forte forte_lite)

install(targets forte runtime destination bin)

message("building executable")

endif(forte_build_executable)

我又新增了另外乙個檔案 cmakelist.txt,新增了標頭檔案

forte_add_include_directories($)

forte_add_sourcefile_h   (adt_motion_pulse.h adt_motion_unit.h)

再次生成,make成功

引入三方庫 Xcode中引入第三方庫

我在網上也看過了很多的資料,關於怎麼引用第三方庫,但是看得我也是眼花繚亂。有的是使用第三方管理程式cocoapods,看起來好像很好用的樣子,本來還期望它能像nutget一樣方便,但是有點失望了。操作基本都是使用命令列,關鍵是我按照別人部落格上說的操作了一波,結果不行。操作不僅不方便還會有一堆的問題...

工程中引入第三方庫

在ros包中建立3rdparty並使用 catkin space cmakelists.txt src資料夾 cmakelists.txt packages.xml node1資料夾 include資料夾 src資料夾 3rdparty資料夾 inlude資料夾 opencv opencv open...

VUE引入第三方外掛程式

vue 引入第三方外掛程式方法 1 如果是第三方 npm 模組檔案 檔案統一放入src assets js 資料夾下 統一在main.js 內引入 import parse from assets js plugin.js import assets js plugin.js 2 如果是第三方非 n...