Changeset 21 in pacpusframework


Ignore:
Timestamp:
01/08/13 13:53:29 (11 years ago)
Author:
Marek Kurdej
Message:

Added: new CMake function pacpus_add_library in cmake/PacpusUtilities.cmake.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/PacpusUtilities.cmake

    r20 r21  
    159159
    160160# ========================================
     161# Pacpus add library and set debug postfix
     162# ========================================
     163function(pacpus_add_library)
     164    add_library(${target}
     165        ${ARGV}
     166    )
     167    set_target_properties(
     168        ${target}
     169        PROPERTIES DEBUG_POSTFIX "_d"
     170    )
     171endfunction()
     172
     173# ========================================
    161174# Pacpus add executable and set debug postfix
    162175# ========================================
     
    174187# Pacpus install
    175188# ========================================
    176 function(pacpus_install target)
     189function(pacpus_install)
    177190    install(
    178         TARGETS ${target}
     191        TARGETS ${ARGV}
    179192        RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
    180193        LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
Note: See TracChangeset for help on using the changeset viewer.