/* // // Copyright 1997-2009 Torsten Rohlfing // // Copyright 2004-2013 SRI International // // Copyright 2015 Google, Inc. // // This file is part of the Computational Morphometry Toolkit. // // http://www.nitrc.org/projects/cmtk/ // // The Computational Morphometry Toolkit is free software: you can // redistribute it and/or modify it under the terms of the GNU General Public // License as published by the Free Software Foundation, either version 3 of // the License, or (at your option) any later version. // // The Computational Morphometry Toolkit is distributed in the hope that it // will be useful, but WITHOUT ANY WARRANTY; without even the implied // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License along // with the Computational Morphometry Toolkit. If not, see // . // // $Revision$ // // $LastChangedDate$ // // $LastChangedBy$ // */ /* cmtkconfig.h.cmake */ #ifndef __cmtkconfig_h_included__ #define __cmtkconfig_h_included__ #define CMTK_VERSION_MAJOR 3 #define CMTK_VERSION_MINOR 3 #define CMTK_VERSION_PATCH "1p1" #define CMTK_VERSION_STRING "3.3.1p1" #define CMTK_ROOT_PATH_SRI24 "CMTK_ROOT_PATH_SRI24-NOTFOUND" #define CMTK_BINARY_DIR "/Users/scachero/Downloads/cmtk/core/build/bin" #define CMTK_DATADIR "/Users/scachero/Downloads/cmtk/data/testing/inputs" #define CMTK_DCMDICTPATH "/Users/scachero/Downloads/cmtk/core/build/bin" #define CMTK_DCMDICTPATH_INSTALL "/usr/local/lib/cmtk" // Unless in "DEBUG" build, turn off AlgLib assertions #ifndef DEBUG #define NO_AP_ASSERT 1 #endif // // Configuration options // /* #undef CMTK_BUILD_UNSTABLE */ #define CMTK_BUILD_STACKTRACE 1 /* #undef CMTK_BUILD_RTRACKER */ /* #undef CMTK_BUILD_DEMO */ #define CMTK_BUILD_NRRD 1 #define CMTK_USE_SMP 1 #define CMTK_USE_PTHREADS 1 /* #undef CMTK_USE_CUDA */ #define CMTK_USE_BZIP2 1 /* #undef CMTK_USE_LZMA */ #define CMTK_USE_DCMTK 1 /* #undef CMTK_USE_SQLITE */ #define CMTK_USE_FFTW_FOUND 1 #define CMTK_COORDINATES_DOUBLE 1 #ifndef CMTK_COORDINATES_DOUBLE # define CMTK_COORDINATES_FLOAT 1 #endif #define CMTK_DATA_DOUBLE 1 #ifndef CMTK_DATA_DOUBLE # define CMTK_DATA_FLOAT 1 #endif #define CMTK_NUMERICS_DOUBLE 1 #ifndef CMTK_NUMERICS_DOUBLE # define CMTK_NUMERICS_FLOAT 1 #endif #define CMTK_COMPILER_VAR_AUTO_ARRAYSIZE 1 #define HAVE_DIRENT_H 1 #define HAVE_EXECINFO_H 1 #define HAVE_FCNTL_H 1 /* #undef HAVE_IEEEFP_H */ #define HAVE_INTTYPES_H 1 /* #undef HAVE_MALLOC_H */ #define HAVE_PTHREAD_H 1 #define HAVE_STDINT_H 1 #define HAVE_TERMIOS_H 1 #define HAVE_UNISTD_H 1 /* #undef HAVE_VALUES_H */ #define HAVE_SYS_IOCTL_H 1 /* #undef HAVE_SYS_PROCFS_H */ #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TIMES_H 1 #define HAVE_SYS_TIME_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_UTSNAME_H 1 /* #undef HAVE_HASH_MAP */ /* #undef HAVE_HASH_MAP_H */ #define HAVE_UNORDERED_MAP 1 /* #undef HAVE_UNORDERED_MAP_TR1 */ /* #undef WORDS_BIGENDIAN */ /* Use stat64 on systems where it is available and stat is not 64bit aware. */ /* #undef CMTK_USE_STAT64 */ // Flag for Grand Central Dispatch #define CMTK_USE_GCD 1 /* The size of a `char', as computed by sizeof. */ /* #undef SIZEOF_CHAR */ /* The size of a `double', as computed by sizeof. */ /* #undef SIZEOF_DOUBLE */ /* The size of a `float', as computed by sizeof. */ /* #undef SIZEOF_FLOAT */ /* The size of a `int', as computed by sizeof. */ /* #undef SIZEOF_INT */ /* The size of a `long', as computed by sizeof. */ /* #undef SIZEOF_LONG */ /* The size of a `short', as computed by sizeof. */ /* #undef SIZEOF_SHORT */ /* The size of a `void *', as computed by sizeof. */ /* #undef SIZEOF_VOID_P */ /// Macro to prevent warnings from unused function arguments. #define UNUSED(a) ((void)a) #ifdef _MSC_VER // disable warnings about insecure functions (we want to be portable) # define _CRT_SECURE_NO_DEPRECATE // disable warnings about unknown (i.e., gcc) pragmas # pragma warning ( disable: 4068 ) // disable warnings about unimplemented "throw()" declaration #pragma warning(disable: 4290) // enable POSIX compliance # define _POSIX_ # define NOMINMAX #include #if _MSC_VER >= 1900 # define STDC99 #else # define snprintf _snprintf # define strdup _strdup #endif # define random rand # define srandom srand #include inline int finite( const double x ) { return _finite(x); } // Fake PATH_MAX if we don't have it #ifndef PATH_MAX #define PATH_MAX 1024 #endif # define CMTK_PATH_SEPARATOR '\\' # define CMTK_PATH_SEPARATOR_STR "\\" #else # define CMTK_PATH_SEPARATOR '/' # define CMTK_PATH_SEPARATOR_STR "/" #endif //#ifdef _MSC_VER #endif // #ifndef __cmtkconfig_h_included__