<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi all,<br>
    <br>
    We develop a cmake-based application.<br>
    We create several libraries which are linked to VTK and ITK
    libraries.<br>
    <br>
    <small><small>ADD_LIBRARY( <b>QGoGui</b><br>
        &nbsp; ${QGoGUILIB_SRC}<br>
        &nbsp; ${QGoGUILIB_MOC}<br>
        &nbsp; ${QGoGUI_QRC}<br>
        )<br>
        <br>
        SET( QGoGUI_LIBS<br>
        &nbsp; ITKStatistics<br>
        &nbsp; ...<br>
        &nbsp; )<br>
        <br>
        TARGET_LINK_LIBRARIES( <b>QGoGui</b><br>
        &nbsp; ${QGoGUI_LIBS}<br>
        &nbsp; )</small></small><br>
    <small><small><br>
        INSTALL( TARGETS <b>QGoGui</b><br>
        &nbsp; RUNTIME DESTINATION ${MYAPPLICATION_INSTALL_BIN_DIR} COMPONENT
        Runtime<br>
        &nbsp; ARCHIVE DESTINATION ${</small></small><small><small>MYAPPLICATION</small></small><small><small>_INSTALL_LIB_DIR}
        COMPONENT Libraries<br>
        &nbsp; LIBRARY DESTINATION ${</small></small><small><small>MYAPPLICATION</small></small><small><small>_INSTALL_LIB_DIR}&nbsp;
        COMPONENT Libraries<br>
        &nbsp; )</small></small><br>
    <br>
    While installing the application (make install), we would like to
    install the new library (<small><b>QGoGui</b></small>) and the
    linked VTK and ITK libraries (<big><b><small><small>ITKStatistics</small></small></b></big>)
    into the target "/lib" folder (<small><small>${</small></small><small><small>MYAPPLICATION</small></small><small><small>_INSTALL_LIB_DIR}</small></small>)
    .<br>
    <br>
    So far it only installs properly the new library (<small><b>QGoGui</b></small>)
    (NOT <big><b><small><small>ITKStatistics</small></small></b></big>).<br>
    <br>
    The work around was to use fixup_bundle() for linux as well.<br>
    The problem is that on Linux, all the libraries ("new" and "3rd
    party") are moved to the "/bin" folder instead of the "/lib" folder.<br>
    <br>
    Should we specialized the behavior of fixup_bundle() for linux
    somehow or should we add more instructions inside the INSTALL
    command?<br>
    <br>
    Thanks<br>
    <br>
    <br>
    Nicolas<br>
  </body>
</html>