Changeset 57 in pacpusframework for trunk


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

CMake: MSVC: installing debug info files .pdb.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/TODO.txt

    r56 r57  
    1 * installing .pdb (Debug info) files on Windows MSVC
     1TODO:
     2
     3DONE:
     4* (2013-01-09, kurdejma) installing .pdb (Debug info) files on Windows MSVC
  • 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.