New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "NOINSTALL" option to cmake build function dd4hep_add_library #302

Merged
merged 1 commit into from Feb 15, 2018

Conversation

Projects
None yet
2 participants
@decibelcooper
Member

decibelcooper commented Feb 5, 2018

This is particularly useful for allowing the user to export targets during install.

Example:

# Create plugin target
dd4hep_add_plugin(${PROJECT_NAME}
    SOURCES
        ${SRCS}
    NOINSTALL
    )

# Install plugin target, and add to "${PROJECT_NAME}Targets" export
install(TARGETS ${PROJECT_NAME}
    EXPORT ${PROJECT_NAME}Targets
    )

# Install targets export for use by dependents
install(EXPORT ${PROJECT_NAME}Targets
    FILE ${PROJECT_NAME}Targets.cmake
    DESTINATION lib/${PROJECT_NAME}
    )

This PR is revisits #259

BEGINRELEASENOTES

  • Added "NOINSTALL" option to cmake build function dd4hep_add_library

ENDRELEASENOTES

Added "NOINSTALL" option to cmake build function dd4hep_add_library
This is particularly useful for allowing the user to export targets
during install.

@decibelcooper decibelcooper force-pushed the decibelcooper:master branch from c2af36e to fb81aea Feb 5, 2018

@petricm petricm added the enhancement label Feb 6, 2018

@petricm petricm requested a review from MarkusFrankATcernch Feb 6, 2018

@petricm petricm merged commit e318c70 into AIDASoft:master Feb 15, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment