PR #6 improved the build-system to properly install artifacts
The configured vtkAddonInstallConfig.cmake.in should be improved so that it does NOT contain absolute paths:
|
set(vtkAddon_CMAKE_DIR "@CMAKE_INSTALL_PREFIX@/@vtkAddon_INSTALL_CMAKE_DIR@") |
|
set(vtkAddon_INCLUDE_DIRS "@CMAKE_INSTALL_PREFIX@/@vtkAddon_INSTALL_INCLUDE_DIR@") |
|
set(vtkAddon_LIB_DIR "@CMAKE_INSTALL_PREFIX@/@vtkAddon_INSTALL_LIB_DIR@") |
|
set(VTK_DIR "@VTK_DIR@") |
The following resources may be helpful to learn how to move forward:
Some CMake projects:
PR #6 improved the build-system to properly install artifacts
The configured
vtkAddonInstallConfig.cmake.inshould be improved so that it does NOT contain absolute paths:vtkAddon/vtkAddonInstallConfig.cmake.in
Lines 1 to 4 in 965cb2e
The following resources may be helpful to learn how to move forward:
https://stackoverflow.com/questions/51564251/correct-way-to-use-third-party-libraries-in-cmake-project/51567322#51567322
https://stackoverflow.com/questions/56135785/correctly-set-the-location-of-imported-cmake-targets-for-an-installed-package/56288628#56288628
Some CMake projects:
proxTV: https://github.com/phcerdan/proxTV/blob/a503293ed567d7114bee85e4e068305d4afe7dbe/CMakeLists.txt#L84-L136
python-cmake-buildsystem: https://github.com/python-cmake-buildsystem/python-cmake-buildsystem/blob/2b036f110364a9295760345c9bbb3337c2ca9d72/CMakeLists.txt#L636-L687
CTKAppLauncher: https://github.com/commontk/AppLauncher/blob/1c7156701ee96ab7b69ecc8322dc5443514927fa/CMakeLists.txt#L363-L469