Right now I have a legacy makefile which does the equivalent of

gcc -c foo.c
g++ -o foo foo.o -lasdf -lqwer

Because asdf and qwer are static libraries from c++ sources.

Is there a straightforward way to do something like

add_executable(foo foo.c)
target_link_libraries(foo asdf qwer)

in this case and have g++ used for final compilation step?

thanks
b.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to