Changeset 57 in pacpusframework for trunk/cmake/PacpusUtilities.cmake


Ignore:
Timestamp:
Jan 9, 2013, 10:23:11 AM (12 years ago)
Author:
Marek Kurdej
Message:

CMake: MSVC: installing debug info files .pdb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/PacpusUtilities.cmake

    r51 r57  
    194194        ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
    195195    )
     196    if(MSVC)
     197        # install debug information files .pdb
     198        foreach(target ${ARGV})
     199            get_target_property(target_filepath ${target} LOCATION_DEBUG)
     200            get_filename_component(target_directory ${target_filepath} PATH)
     201            get_filename_component(target_basename ${target_filepath} NAME_WE)
     202           
     203            set(target_pdb "${target_directory}/${target_basename}.pdb")
     204            install(FILES ${target_pdb}
     205                CONFIGURATIONS Debug
     206                DESTINATION ${PACPUS_INSTALL_DIR}/lib
     207            )
     208        endforeach()
     209    endif(MSVC)
    196210endfunction()
    197211
Note: See TracChangeset for help on using the changeset viewer.