[Repository Listing] / [Slicer3] / trunk / GenerateSlicer3Config.cmake
 

View of /trunk/GenerateSlicer3Config.cmake

Parent Directory Parent Directory Revision Log Revision Log


Revision 15041  Download Blame
File size: 2245 byte(s)
ENH: make Slicer3/trunk be a copy of Slicer-3-6 branch.  New slicer4 development has moved to http://svn.slicer.org/Slicer4/trunk.  Use the Slicer3 trunk only for slicer3 maint purposes.

See this desription for details:

http://massmail.spl.harvard.edu/public-archives/slicer-devel/2010/005338.html
1 # Generate the Slicer3Config.cmake file in the build tree and configure one
2 # for the installation tree. This file tells external project how to use
3 # Slicer. This provides a mechanism for third party developers to build
4 # modules against a Slicer installation.
5 #
6 #
7
8 # The configuration process is very different for a build tree and an
9 # installation. The resulting directory structures are vastly
10 # different. So, the two configured files not only have different
11 # settings, they have a different structure.
12
13 # Settings that are the same for build trees and installation trees
14 #
15 #
16
17 # Settings specific to build trees
18 #
19 #
20
21 SET(TCLAP_DIR_CONFIG ${Slicer3_BINARY_DIR}/Libs/SlicerExecutionModel/tclap)
22 SET(ModuleDescriptionParser_DIR_CONFIG ${Slicer3_BINARY_DIR}/Libs/SlicerExecutionModel/ModuleDescriptionParser)
23 SET(GenerateCLP_DIR_CONFIG ${Slicer3_BINARY_DIR}/Libs/SlicerExecutionModel/GenerateCLP)
24 SET(Slicer3_USE_FILE_CONFIG ${Slicer3_BINARY_DIR}/UseSlicer3.cmake)
25 SET(LoadableModule_DIR_CONFIG ${Slicer3_BINARY_DIR}/Libs/LoadableModule)
26
27 SET(Slicer3_Libs_INCLUDE_DIRS_CONFIG ${Slicer3_Libs_INCLUDE_DIRS})
28 SET(Slicer3_Libs_LIBRARY_DIRS_CONFIG ${Slicer3_BINARY_DIR}/bin ${Slicer3_BINARY_DIR}/lib)
29
30 SET(Slicer3_Base_INCLUDE_DIRS_CONFIG ${Slicer3_Base_INCLUDE_DIRS})
31 SET(Slicer3_Base_LIBRARY_DIRS_CONFIG ${Slicer3_BINARY_DIR}/bin)
32
33 SET(ITK_DIR_CONFIG ${ITK_DIR})
34 SET(VTK_DIR_CONFIG ${VTK_DIR})
35 IF (Slicer3_USE_KWWIDGETS)
36 SET(KWWidgets_DIR_CONFIG ${KWWidgets_DIR})
37 ENDIF (Slicer3_USE_KWWIDGETS)
38 SET(Teem_DIR_CONFIG ${Teem_DIR})
39 SET(PYTHON_INCLUDE_PATH_CONFIG ${PYTHON_INCLUDE_PATH})
40 SET(PYTHON_LIBRARIES_CONFIG ${PYTHON_LIBRARIES})
41 SET(BatchMake_DIR_CONFIG ${BatchMake_DIR})
42 SET(OpenCV_DIR_CONFIG ${OpenCV_DIR})
43
44 # Configure Slicer3Config.cmake for the install tree.
45 CONFIGURE_FILE(
46 ${Slicer3_SOURCE_DIR}/Slicer3Config.cmake.in
47 ${Slicer3_BINARY_DIR}/Slicer3Config.cmake @ONLY IMMEDIATE)
48
49 # Settings specific for installation trees
50 #
51 # (Note we configure from a different file than use for the build tree)
52
53 # Configure Slicer3Config.cmake for the install tree.
54 CONFIGURE_FILE(
55 ${Slicer3_SOURCE_DIR}/Slicer3InstallConfig.cmake.in
56 ${Slicer3_BINARY_DIR}/Utilities/Slicer3Config.cmake @ONLY IMMEDIATE)

  Subversion  TortoiseSVN  ViewVC