Right now I have a legacy makefile which does the equivalent of<br><br>gcc -c foo.c<br>g++ -o foo foo.o -lasdf -lqwer<br><br>Because asdf and qwer are static libraries from c++ sources.<br><br>Is there a straightforward way to do something like<br>
<br>add_executable(foo foo.c)<br>target_link_libraries(foo asdf qwer)<br><br>in this case and have g++ used for final compilation step?<br><br>thanks<br>b.<br><br>