[CMake] two new macros in the wiki

Brad King brad.king at kitware.com
Mon Dec 12 17:15:36 EST 2005


Alexander Neundorf wrote:
> I added two new macros to the cmake wiki page: 
>  
> http://www.cmake.org/Wiki/CMakeMacroLibtoolFile 

For this one a multiline string might be useful:

FILE(WRITE "${_laname}"
"# ${_laname} - a libtool library file, generated by cmake
# The name that we can dlopen(3).
dlname='${_soname}'
# Names of this library
library_names='${_soname} ${_soname} ${_soname}'
# The name of the static archive
old_library=
# Libraries that this one depends upon.
dependency_libs=
# Version information.
current=0
age=0
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=yes
# Files to dlopen/dlpreopen
dlopen=
dlpreopen=
# Directory that this library needs to be installed in:
libdir='${CMAKE_INSTALL_PREFIX}${_install_DIR}'
")

-Brad


More information about the CMake mailing list