~ubuntu-branches/ubuntu/vivid/regina-normal/vivid

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ben Burton
  • Date: 2013-11-02 11:44:32 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20131102114432-acgci6b1pb2hjl8q
Tags: 4.95-1
* New upstream release.
* The python module is now installed in a standard location beneath
  /usr/lib/python2.7/dist-packages.
* Switched python packaging from python-support to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
14
14
 
15
15
# Version
16
 
SET (PACKAGE_VERSION 4.94)
 
16
SET (PACKAGE_VERSION 4.95)
17
17
SET (PACKAGE_STRING "${PACKAGE_PRETTY_NAME} ${PACKAGE_VERSION}")
18
18
 
19
19
# Extract major/minor version
163
163
  SET (DATADIR ${CMAKE_INSTALL_PREFIX}/share)
164
164
  SET (INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include/${PACKAGE_NAME})
165
165
  SET (PKGDATADIR ${DATADIR}/${PACKAGE_NAME})
166
 
  SET (PYLIBDIR ${LIBDIR}/${PACKAGE_NAME}/python)
 
166
  UNSET (PYLIBDIR)
167
167
endif ()
168
168
SET (HTMLDIR ${PKGDATADIR}/docs)
169
169
SET (ICONDIR ${DATADIR}/icons)
210
210
  LONG_LONG_FOUND )
211
211
 
212
212
CHECK_CXX_SOURCE_COMPILES("
 
213
  #include <stdint.h>
 
214
  int128_t x;
 
215
  uint128_t y;
 
216
  int main() { return 0; }"
 
217
  INT128_T_FOUND )
 
218
 
 
219
CHECK_CXX_SOURCE_COMPILES("
 
220
  #include <stdint.h>
213
221
  __int128_t x;
214
222
  __uint128_t y;
215
223
  int main() { return 0; }"
216
 
  INT128_FOUND )
 
224
  __INT128_T_FOUND )
 
225
 
 
226
IF (INT128_T_FOUND OR __INT128_T_FOUND)
 
227
  SET(INT128_AVAILABLE TRUE)
 
228
ENDIF (INT128_T_FOUND OR __INT128_T_FOUND)
217
229
 
218
230
IF(LONG_LONG_FOUND)
219
231
  CHECK_CXX_SOURCE_COMPILES("
364
376
 
365
377
IF(Boost_FOUND AND PYTHONINTERP_FOUND AND PYTHONLIBS_FOUND)
366
378
  # We can support python.
 
379
 
 
380
  # Find the site-packages location in which the XDG build needs to put
 
381
  # the python module.
 
382
  EXECUTE_PROCESS(COMMAND
 
383
    "${PYTHON_EXECUTABLE}" -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(True)"
 
384
    OUTPUT_VARIABLE SITE_PACKAGES
 
385
    OUTPUT_STRIP_TRAILING_WHITESPACE
 
386
    RESULT_VARIABLE DISTUTILS_RESULT)
 
387
  IF ((NOT DISTUTILS_RESULT) AND IS_DIRECTORY "${SITE_PACKAGES}")
 
388
    MESSAGE(STATUS "Python site-packages directory: ${SITE_PACKAGES}")
 
389
  ELSE ()
 
390
    MESSAGE(FATAL_ERROR "Could not query the python site-packages directory.  Please either set the correct python interpreter (-DPYTHON_EXECUTABLE=...), or else disable python bindings (-DDISABLE_PYTHON).")
 
391
  ENDIF ()
 
392
 
367
393
  ADD_SUBDIRECTORY(pylib)
368
394
  ADD_SUBDIRECTORY(python)
369
395
  SET(BOOST_PYTHON_FOUND TRUE)
 
396
 
370
397
  MESSAGE(STATUS "Python bindings enabled")
371
398
ELSEIF(Boost_FOUND)
372
399
  # Boost itself is mandatory - if it was not found then we have
486
513
  "^${PROJECT_SOURCE_DIR}/utils/local/"
487
514
  "^${PROJECT_SOURCE_DIR}/utils/snappea/"
488
515
  "^${PROJECT_SOURCE_DIR}/www/"
 
516
  "^${PROJECT_SOURCE_DIR}/\\\\.git/"
489
517
  "^${PROJECT_SOURCE_DIR}.*/\\\\.svn/"
490
518
  "\\\\.DS_Store$"
491
519
)