/usr/share/vxl/cmake/VXLStandardOptions.cmake is in libvxl1-dev 1.17.0.dfsg2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # vxl/config/cmake/VXLStandardOptions.cmake
#
# This CMake module is included by vxl/CMakeLists.txt. It adds
# several vxl-standard testing and build options to the project:
#
# BUILD_SHARED_LIBS
# BUILD_TESTING
# BUILD_EXAMPLES
# WARN_DEPRECATED
# WARN_DEPRECATED_ONCE
# WARN_DEPRECATED_ABORT
#
# These options may be introduced into client projects with this line:
#
# INCLUDE(${VXL_CMAKE_DIR}/VXLStandardOptions.cmake)
#
# This module may be automatically included by UseVXL.cmake.
# See vxl/config/cmake/UseVXL.cmake for details.
#
# Everything here should be valid for both the vxl source and for
# client projects.
INCLUDE(CTest)
IF( WIN32 )
OPTION( BUILD_SHARED_LIBS "Should shared libraries be the default?" NO )
ELSE( WIN32 )
OPTION( BUILD_SHARED_LIBS "Should shared libraries be the default?" NO )
ENDIF( WIN32 )
SET( SOLARIS 0 )
IF( CMAKE_SYSTEM MATCHES "SunOS.*" )
SET( SOLARIS 1 )
ENDIF( CMAKE_SYSTEM MATCHES "SunOS.*" )
# By default, build examples when building tests.
OPTION( BUILD_EXAMPLES "Should the examples be built?" ${BUILD_TESTING} )
OPTION( WARN_DEPRECATED "Enable runtime warnings for deprecated functions?" YES )
OPTION( WARN_DEPRECATED_ONCE "Only warn once per function (if runtime warnings are enabled)?" YES )
OPTION( WARN_DEPRECATED_ABORT "Abort on executing a deprecated function (if runtime warnings are enabled)?" NO )
MARK_AS_ADVANCED( WARN_DEPRECATED WARN_DEPRECATED_ONCE WARN_DEPRECATED_ABORT )
IF(WARN_DEPRECATED)
ADD_DEFINITIONS( -DVXL_WARN_DEPRECATED )
IF(WARN_DEPRECATED_ONCE)
ADD_DEFINITIONS( -DVXL_WARN_DEPRECATED_ONCE )
ENDIF(WARN_DEPRECATED_ONCE)
IF(WARN_DEPRECATED_ABORT)
ADD_DEFINITIONS( -DVXL_WARN_DEPRECATED_ABORT )
ENDIF(WARN_DEPRECATED_ABORT)
ENDIF(WARN_DEPRECATED)
IF (VCL_HAS_LFS OR WIN32)
OPTION( VXL_USE_LFS "Should VXL use Large File Support?" NO)
MARK_AS_ADVANCED( VXL_USE_LFS )
ENDIF (VCL_HAS_LFS OR WIN32)
IF(VXL_USE_LFS)
IF(WIN32)
# TODO: MS Version Support
# MESSAGE( SEND_ERROR "Sorry - Large File Support is not quite working on Win32 yet. Turning VXL_USE_LFS off")
# SET(VXL_USE_LFS "NO" CACHE BOOL "Should VXL use Large File Support?" FORCE)
ELSE(WIN32)
IF (VCL_HAS_LFS)
ADD_DEFINITIONS( -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE)
ELSE (VCL_HAS_LFS)
MESSAGE( SEND_ERROR "This platform does not have Large File Support - turning VXL_USE_LFS off")
SET(VXL_USE_LFS "NO" CACHE BOOL "Should VXL use Large File Support?" FORCE)
ENDIF (VCL_HAS_LFS)
ENDIF(WIN32)
ENDIF(VXL_USE_LFS)
|