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


Ignore:
Timestamp:
Jan 8, 2013, 1:30:56 PM (12 years ago)
Author:
Marek Kurdej
Message:

Added: new CMake functions in cmake/PacpusUtilities.cmake.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/PacpusUtilities.cmake

    r6 r19  
    157157  endif()
    158158endfunction()
     159
     160# ========================================
     161# Pacpus add executable and set debug postfix
     162# ========================================
     163function(pacpus_add_executable)
     164    add_executable(${target}
     165        ${ARGV}
     166    )
     167    set_target_properties(
     168        ${target}
     169        PROPERTIES DEBUG_POSTFIX "_d"
     170    )
     171endfunction()
     172
     173# ========================================
     174# Pacpus install
     175# ========================================
     176function(pacpus_install target)
     177    install(
     178        TARGETS ${target}
     179        RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin
     180        LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib
     181        ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib
     182    )
     183endfunction()
     184
     185# ========================================
     186# Pacpus folder
     187# ========================================
     188function(pacpus_folder target folder_name)
     189    if(PACPUS_USE_FOLDERS AND MSVC)
     190        set_target_properties(${target}
     191            PROPERTIES FOLDER ${folder_name}
     192        )
     193    endif()
     194endfunction()
Note: See TracChangeset for help on using the changeset viewer.