Skip to content
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

ENH: allow build of extensions which depend on this one #8

Merged
merged 1 commit into from Jul 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions CMakeLists.txt
Expand Up @@ -24,8 +24,12 @@ project(SegmentRegistration)
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})

find_package(SlicerProstate REQUIRED)
find_package(SlicerRT REQUIRED)
if (NOT DEFINED Slicer_EXTENSION_SOURCE_DIRS)
find_package(SlicerProstate REQUIRED)
find_package(SlicerRT REQUIRED)
else()
# Allow usage if dependent extension is bundled
endif()

set(DEPENDENCY_BUILD_DIRS "")
if(CMAKE_CONFIGURATION_TYPES)
Expand Down