Changeset 134 in pacpusframework for branches/2.0-beta1/cmake


Ignore:
Timestamp:
Jul 30, 2013, 3:04:31 PM (11 years ago)
Author:
Marek Kurdej
Message:

Update: create_export adds automatically add_definitions( -D${PLUGIN_NAME_UPPER}_EXPORTS ).

File:
1 edited

Legend:

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

    r133 r134  
    385385    set(${OUT_H} "${PLUGIN_CONFIG_FILE}" PARENT_SCOPE)
    386386   
     387    string(TOUPPER ${PLUGIN_NAME} PLUGIN_NAME_UPPER)
     388    add_definitions( -D${PLUGIN_NAME_UPPER}_EXPORTS )
     389   
    387390    # create the header file
    388     string(TOUPPER ${PLUGIN_NAME} PLUGIN_NAME_UPPER)
    389391    file(WRITE "${PLUGIN_CONFIG_FILE}"
    390392        "// Autogenerated file by PacpusUtilities.cmake\n"
Note: See TracChangeset for help on using the changeset viewer.