~juan457/+junk/zorba

« back to all changes in this revision

Viewing changes to ZorbaConfig.cmake.in

  • Committer: ceejatec
  • Date: 2011-02-23 12:49:34 UTC
  • Revision ID: svn-v4:8046edc3-af21-0410-8661-ec7318497eea:trunk/zorba:9976
Numerous changes to support externalizing modules.
1. Overhauled ZorbaConfig framework to allow easy "finding" of Zorba (either
   from source or installed binary form); consolidated all into top-level
   config/ directory.
2. Moved GENERATE_MODULE_LIBRARY() macro to ZorbaModule.cmake (which is also
   installed); updated to support out-of-core modules.
3. Fixed and improved several features regarding "make install", such as
   enabling RPath, correcting include directories, etc.
4. Consolidated some other project-configuration files into config/, such as
   debian and Fedora packaging files.
5. Added --module-path option to testdriver and testdriver_mt.
6. testdriver is now installed by "make install" (may be revisited).

And, eliminated "geo" module - now available at
  http://zorba.svn.sourceforge.net/svnroot/zorba/modules/geo/trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2006-2008 The FLWOR Foundation.
2
 
3
 
# Licensed under the Apache License, Version 2.0 (the "License");
4
 
# you may not use this file except in compliance with the License.
5
 
# You may obtain a copy of the License at
6
 
7
 
# http://www.apache.org/licenses/LICENSE-2.0
8
 
9
 
# Unless required by applicable law or agreed to in writing, software
10
 
# distributed under the License is distributed on an "AS IS" BASIS,
11
 
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 
# See the License for the specific language governing permissions and
13
 
# limitations under the License.
14
 
 
15
 
# Tell the user project where to find our headers and libraries
16
 
SET(Zorba_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/include"
17
 
                       "${CMAKE_BINARY_DIR}/include"
18
 
                       "${CMAKE_SOURCE_DIR}/src"
19
 
                       "${CMAKE_BINARY_DIR}/src"
20
 
)
21
 
SET(Zorba_LIBRARY_DIRS "${CMAKE_BINARY_DIR}/src"
22
 
                       "${CMAKE_BINARY_DIR}/src/zorbaerrors"
23
 
                       "${CMAKE_BINARY_DIR}/src/zorbatypes"
24
 
                       "${CMAKE_BINARY_DIR}/src/zorbautils"
25
 
                       "${CMAKE_BINARY_DIR}/external/json"
26
 
)
27
 
 
28
 
SET(Zorba_API "${CMAKE_BINARY_DIR}/include"
29
 
              "${CMAKE_SOURCE_DIR}/include"
30
 
)
31
 
SET(SimpleStore_LIBRARY_DIRS "${CMAKE_BINARY_DIR}/src/store/naive"
32
 
)
33
 
SET(Zorba_VERSION ${ZORBA_MAJOR_NUMBER}.${ZORBA_MINOR_NUMBER}.${ZORBA_PATCH_NUMBER})
34
 
 
35
 
SET(ZORBA_SKIP_RPATH ${CMAKE_SKIP_RPATH})
36
 
 
37
 
# Tell the user project where to find our build settings and library dependencies
38
 
SET(Zorba_BUILD_SETTINGS_FILE "${CMAKE_BINARY_DIR}/ZorbaBuildSettings.cmake")
39
 
INCLUDE("${CMAKE_BINARY_DIR}/ZorbaLibraryDepends.cmake")
40
 
 
41
 
# Tell the user project where to find the "USE" file.
42
 
# This file uses the above settings to configure the user project
43
 
SET(Zorba_USE_FILE "${CMAKE_SOURCE_DIR}/ZorbaUse.cmake")
44
 
 
45
 
SET(Zorba_ICUUC    "@Zorba_ICUUC@")
46
 
SET(Zorba_ICUI18N  "@Zorba_ICUI18N@")
47
 
SET(Zorba_ICU_DATA "@Zorba_ICU_DATA@")
48
 
SET(Zorba_XERCESC  "@Zorba_XERCESC@")
49
 
SET(Zorba_CURL     "@Zorba_CURL@")
50
 
 
51
 
SET(ZORBA_DOC_DIR "${CMAKE_SOURCE_DIR}/doc/")