Hi,
Is there a way to access the string that would be spliced into the
<LINK_LIBRARIES> field in a specified target's Makefile?
I'm trying to generate automatically a minimalist makefile to be used outside
our build tree by a user of our libraries. I'd like to write a configurable
file, say, Makefile.external.in, that looks something like
cxx_compil...@cmake_cxx_compiler@
cxx_fla...@cmake_cxx_flags@
cxx_link_librari...@how_do_i_do_this????@
and produces something like:
CXX_COMPILER=/usr/local/gcc-4.3.2/bin/g++
CXX_FLAGS=-ansi -pedantic -Wall
CXX_LINK_LIBRARIES=-lfoo -lbar -lsnafu
according to the configuration determined by cmake. The splicing of values
for CXX_COMPILER and CXX_FLAGS works perfectly. How can I get the string
containing the libraries? Obviously CMake has the information because it uses
it to create makefiles. How do I access it?
Thanks,
Kevin
--
------------------------------------------------------
Kevin Long
Associate Professor
Department of Mathematics and Statistics
Texas Tech University
Lubbock, TX
"The end of fear is the beginning of wisdom"
-- Bertrand Russell
------------------------------------------------------
_______________________________________________
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