Skip to content

Seperate dev components from runtime components in bcm_install_targets #10

@pfultz2

Description

@pfultz2

Something like:

set_target_properties(${EXPORT_TARGETS} PROPERTIES
  DEBUG_POSTFIX "-d"
  SO_VERSION ${EXPORT_VERSION}
  VERSION ${EXPORT_VERSION}
  )

install(TARGETS ${EXPORT_TARGETS} EXPORT ${EXPORT_SET}
  ARCHIVE
    DESTINATION "${CMAKE_INSTALL_LIBDIR}"
    COMPONENT ${EXPORT_COMPONENT}_DEV
  LIBRARY NAMELINK_ONLY
    DESTINATION "${CMAKE_INSTALL_LIBDIR}"
    COMPONENT ${EXPORT_COMPONENT}_DEV
  LIBRARY CONFIGURATIONS Debug NAMELINK_SKIP
    DESTINATION "${CMAKE_INSTALL_LIBDIR}"
    COMPONENT ${EXPORT_COMPONENT}_DBG
  LIBRARY CONFIGURATIONS Release NAMELINK_SKIP
    DESTINATION "${CMAKE_INSTALL_LIBDIR}"
    COMPONENT ${EXPORT_COMPONENT}
  RUNTIME
    DESTINATION "${CMAKE_INSTALL_BINDIR}"
    COMPONENT ${EXPORT_COMPONENT}
  INCLUDES
    DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
  )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions