1
我應該將哪些內容放入我的jamroot.jam文件中,以便libAPLibrary.so與MyProject編譯的結果鏈接?Boost-bjam:將鏈接結果與預編譯庫
root |-MyProject | |-jamroot.jam | |-AnotherProject |-lib |-libAPLibrary.so
我應該將哪些內容放入我的jamroot.jam文件中,以便libAPLibrary.so與MyProject編譯的結果鏈接?Boost-bjam:將鏈接結果與預編譯庫
root |-MyProject | |-jamroot.jam | |-AnotherProject |-lib |-libAPLibrary.so
如果libAPLibrary.so已經編譯一個圖書館應聲明它和它的鏈接對項目,這樣一來:
lib libAPLibrary : :
# watch out for empty spaces, they are mandatory
<file>../AnotherProject/lib/libAPLibrary.so ;
exe MyProject
:
# your project sources here
# this is a generic filter but you
# can replace it with file names
[ glob *.c* ]
# external libraries
libAPLibrary
;