how to adding static library to cmakelists project
-
wrote on 4 Feb 2020, 09:16 last edited by
hello guys
i am new to cmake, i used to use qmake, in my qmake i have the following for adding a static library that is inside a folder called bin, inside the project folder
macx: LIBS += -L$$PWD/bin/lib/ -lnanomsg INCLUDEPATH += $$PWD/bin/include DEPENDPATH += $$PWD/bin/include macx: PRE_TARGETDEPS += $$PWD/bin/lib/libnanomsg.a
what is the corressponding cmake syntax?
-
See cmake docu: target_link_libraries
1/2