[73298b]: CMakeLists.txt  Maximize  Restore  History

Download this file

98 lines (73 with data), 3.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# Root vxl
#
# geoff.cross@crd.ge.com
# VXL can handle this statement, which introduces warnings about deprecations.
# However, it is commented out for the benefit of those building other projects
# within the VXL tree, but not fully conforming to CMake 1.4 standards.
# After a waiting period, this line should be uncommented.
# CMAKE_MINIMUM_REQUIRED(VERSION 1.4)
PROJECT(allvxl)
SET( LIBRARY_OUTPUT_PATH ${allvxl_BINARY_DIR}/lib CACHE PATH
"Output directory for the vxl libraries" )
# This prevents UseVXL.cmake from attempting to load the main vxl
# cache.
SET( BUILDING_IN_VXL_TREE "YES" )
INCLUDE( ${allvxl_SOURCE_DIR}/UseVXL.cmake )
# Copy the UseVXL.cmake file to the binary directory so that client
# projects don't need to find the source directory first. They can run
# the UseVXL.cmake from the vxl binary directory, and determine the
# vxl source directory by loading the cache.
CONFIGURE_FILE( ${allvxl_SOURCE_DIR}/UseVXL.cmake
${allvxl_BINARY_DIR}/UseVXL.cmake COPYONLY )
# To avoid typing for the FindXXX.cmake modules
SET( MODULE_PATH ${allvxl_SOURCE_DIR}/config.cmake/Modules CACHE STATIC "VXL module path" )
# For use in client projects that call UseVXL.cmake
SET (VXL_LIBRARY_PATH ${LIBRARY_OUTPUT_PATH} CACHE STATIC "Where all the vxl libraries are, for clients to use." )
OPTION(BUILD_MUL "Should the Manchester University Library be built?" YES)
OPTION(BUILD_OXL "Should the Oxford University Library be built?" YES)
OPTION(BUILD_GEL "Should the GE Library be built?" YES)
OPTION(BUILD_TBL "Should the TB Library be built?" YES)
OPTION(BUILD_RPL "Should the RPI Library be built?" YES)
OPTION(BUILD_OUL "Should the Otago University package be built?" YES)
OPTION(BUILD_CONVERSIONS "Should the Conversions Examples be built?" YES)
SUBDIRS(vcl v3p vxl)
IF(BUILD_MUL)
SUBDIRS(mul)
ENDIF(BUILD_MUL)
IF(BUILD_OXL)
SUBDIRS(oxl)
ENDIF(BUILD_OXL)
IF(BUILD_GEL)
SUBDIRS(gel)
ENDIF(BUILD_GEL)
IF(BUILD_TBL)
SUBDIRS(tbl)
ENDIF(BUILD_TBL)
IF(BUILD_RPL)
SUBDIRS(rpl)
ENDIF(BUILD_RPL)
IF(BUILD_OUL)
SUBDIRS(oul)
ENDIF(BUILD_OUL)
IF(BUILD_CONVERSIONS)
SUBDIRS(conversions)
ENDIF(BUILD_CONVERSIONS)
IF(RUN_CONFIGURE)
EXEC_PROGRAM( ${allvxl_SOURCE_DIR}/configure
${allvxl_BINARY_DIR} )
ENDIF(RUN_CONFIGURE)
IF( ${allvxl_BINARY_DIR} MATCHES \\+ )
MESSAGE([SEND_ERROR] "You cannot have a + in your binary path")
ENDIF( ${allvxl_BINARY_DIR} MATCHES \\+ )
IF( ${allvxl_SOURCE_DIR} MATCHES \\+ )
MESSAGE([SEND_ERROR] "You cannot have a + in your source path")
ENDIF( ${allvxl_SOURCE_DIR} MATCHES \\+ )
# include CMakeListsLocal.txt from source directory if it exists
# also include it from the binary dir if different from source dir
IF( ${allvxl_BINARY_DIR} MATCHES ${allvxl_SOURCE_DIR} )
INCLUDE( ${allvxl_SOURCE_DIR}/CMakeListsLocal.txt OPTIONAL )
ELSE( ${allvxl_BINARY_DIR} MATCHES ${allvxl_SOURCE_DIR} )
INCLUDE( ${allvxl_SOURCE_DIR}/CMakeListsLocal.txt OPTIONAL )
INCLUDE( ${allvxl_BINARY_DIR}/CMakeListsLocal.txt OPTIONAL )
ENDIF( ${allvxl_BINARY_DIR} MATCHES ${allvxl_SOURCE_DIR} )

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks