diff options
| author | Howard Butler <howard@hobu.co> | 2014-09-13 21:05:12 +0000 |
|---|---|---|
| committer | Howard Butler <howard@hobu.co> | 2014-09-13 21:05:12 +0000 |
| commit | 532a0f5408f84510abebb2e58da8b7dac7b90ea7 (patch) | |
| tree | c6bde5aeae55cbf44d66a1979eee86503bb9d97b /cmake/Proj4Config.cmake | |
| parent | a008db13413e40fbdf162d03ae94c1c04fff39d9 (diff) | |
| download | PROJ-532a0f5408f84510abebb2e58da8b7dac7b90ea7.tar.gz PROJ-532a0f5408f84510abebb2e58da8b7dac7b90ea7.zip | |
Start implementation of CMake support for proj.4 #243
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2523 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'cmake/Proj4Config.cmake')
| -rw-r--r-- | cmake/Proj4Config.cmake | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/cmake/Proj4Config.cmake b/cmake/Proj4Config.cmake new file mode 100644 index 00000000..e9aa1de5 --- /dev/null +++ b/cmake/Proj4Config.cmake @@ -0,0 +1,38 @@ +################################################################################ +# SociConfig.cmake - CMake build configuration of SOCI library +################################################################################ +# Copyright (C) 2010 Mateusz Loskot <mateusz@loskot.net> +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +################################################################################ +include (CheckIncludeFiles) +include (CheckLibraryExists) + +# check needed include file +check_include_files (dlfcn.h HAVE_DLFCN_H) +check_include_files (inttypes.h HAVE_INTTYPES_H) +check_include_files (jni.h HAVE_JNI_H) +check_include_files (memory.h HAVE_MEMORY_H) +check_include_files (stdint.h HAVE_STDINT_H) +check_include_files (stdlib.h HAVE_STDLIB_H) +check_include_files (string.h HAVE_STRING_H) +check_include_files (sys/stat.h HAVE_SYS_STAT_H) +check_include_files (sys/types.h HAVE_SYS_TYPES_H) +check_include_files (unistd.h HAVE_UNISTD_H) +check_include_files("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS) + +# check libm need on unix +check_library_exists(m ceil "" HAVE_LIBM) + +set(PACKAGE "proj") +set(PACKAGE_BUGREPORT "warmerdam@pobox.com") +set(PACKAGE_NAME "PROJ.4 Projections") +set(PACKAGE_STRING "PROJ.4 Projections ${${PROJECT_INTERN_NAME}_VERSION}") +set(PACKAGE_TARNAME "proj") +set(PACKAGE_VERSION "${${PROJECT_INTERN_NAME}_VERSION}") + +configure_file(cmake/proj_config.cmake.in src/proj_config.h) + + |
