Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
g++ -o test main.cpp /path_to/bib.a
Was muss ich in cmake schreiben, damit ich das obige realisieren kann?
Ich denke dass link_target_library da Probleme haben wird.
ADD_EXECUTABLE(test main.cpp) TARGET_LINK_LIBRARIES(test /path_to_lib/libfoo.a)