Documentation/Labs/SlicerConfigAndUseSlicerTweaks

From Slicer Wiki
Revision as of 23:10, 6 September 2015 by JChris.FillionR (talk | contribs) (Created page with ' == Overview == This page describes possible improvements to the SlicerConfig.cmake and UseSlicer.cmake files. These files are used when calling: <code> find_package(Slicer REQ…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home < Documentation < Labs < SlicerConfigAndUseSlicerTweaks

Overview

This page describes possible improvements to the SlicerConfig.cmake and UseSlicer.cmake files. These files are used when calling:

find_package(Slicer REQUIRED) include(${Slicer_USE_FILE})

The idea is to re-factor these files to avoid extension developers to implement clever work around and hacks for their use-cases, and facilitate overall maintenance.

Use-cases

SPHARM-PDM

Extension: https://github.com/NIRALUser/SPHARM-PDM/blob/master/SuperBuild.cmake

The goal is to re-use only the Slicer packaging macros without having the external projects built by Slicer included in the extension.

The Slicer extension projects are not needed by the extension because it builds a static version of these projects.