Support installation (rebased)#61
Conversation
* Introduce GenerateCLP_INSTALL_CMAKE_DIR variable allowing to configure install location for "GenerateCLP.cmake" macro. * GenerateCLP_INSTALL_NO_DEVELOPMENT: Change default value from ON to OFF. This will ensure GenerateCLP macro and dependent files are installed by default. * GenerateCLPLauncher: - Update hardcoded location of ITK libraries. It was changed from "bin" to "lib" in ITKv4. - Update forward install dir to account for that fact both GenerateCLP and launcher are installed in the same directory. * Ensure following files are installed: - UseGenerateCLP.cmake - GenerateCLPConfig.cmake - GenerateCLP.cmake Co-authored-by: Nicole Aucoin <nicole@bwh.harvard.edu>
* Introduced "GenerateCLP-Install.cmake" script that is deleting the directory associated with CMAKE_INSTALL_PREFIX, and re-installing the files building the "install" target. * Introduced variable TEST_TREETYPE set to either "BuildTree" or "InstallTree". This variable allows to conditionally update the testing context in Configure, Build or Test steps associated with each examples. * For the "BuildTree" case, GenerateCLP_DIR is hardcoded in GenerateCLPTestPrerequisites whereas it is passed as test argument for the "InstallTree" case. Co-authored-by: Nicole Aucoin <nicole@bwh.harvard.edu>
Slicer#44 This will ensure running the tests will not delete files associated with the current CMAKE_INSTALL_PREFIX. Co-authored-by: Nicole Aucoin <nicole@bwh.harvard.edu>
235305b to
8d82e1a
Compare
|
|
@jcfr Confirmed that tests still fail even after rebasing on master branch: The following tests FAILED: |
|
@jcfr. 7 years since this opened, 3.5 years since comments were made. Is this still relevant? |
I'd argue the goal is still relevant, to have the option of installing this library so that it can be packaged / reused by others, ie not depending on the build tree. |
Work in progress.