Changeset 154 in pacpusframework for branches


Ignore:
Timestamp:
Aug 1, 2013, 1:12:13 PM (11 years ago)
Author:
Marek Kurdej
Message:

Update: create_export: added optional 3rd argument -- output directory for the export header file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/cmake/PacpusUtilities.cmake

    r139 r154  
    383383# ========================================
    384384function(CREATE_EXPORT OUT_H PLUGIN_NAME)
     385    # set output directory if given, otherwise use current directory
     386    set(PLUGIN_OUTPUT_DIR "${ARGN}")
    385387    # set file name to the input variable
    386     set(PLUGIN_CONFIG_FILE "${PLUGIN_NAME}PluginConfig.h")
     388    set(PLUGIN_CONFIG_FILE "${PLUGIN_NAME}Config.h")
     389    if (NOT "${PLUGIN_OUTPUT_DIR}" STREQUAL "")
     390        set(PLUGIN_CONFIG_FILE "${PLUGIN_OUTPUT_DIR}/${PLUGIN_CONFIG_FILE}")
     391    endif()
     392   
    387393    set(${OUT_H} "${PLUGIN_CONFIG_FILE}" PARENT_SCOPE)
    388394   
Note: See TracChangeset for help on using the changeset viewer.