aboutsummaryrefslogtreecommitdiffhomepage
path: root/tvmet-1.7.1/include
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-05-30 09:46:12 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-05-30 09:46:12 +0000
commit8eb898ce40f69ce569b5ee251478b8fffe64c50c (patch)
tree1cf668bc88b1e025fb2dbc35ea205fd99ff203ec /tvmet-1.7.1/include
parent47b935fc42cbf2ca992d8a270bc1b0fc97d1f6bc (diff)
begin porting the configure checks to cmake
Diffstat (limited to 'tvmet-1.7.1/include')
-rw-r--r--tvmet-1.7.1/include/tvmet/CMakeLists.txt14
-rw-r--r--tvmet-1.7.1/include/tvmet/config.h.cmake73
2 files changed, 85 insertions, 2 deletions
diff --git a/tvmet-1.7.1/include/tvmet/CMakeLists.txt b/tvmet-1.7.1/include/tvmet/CMakeLists.txt
index c47c07681..46c251ac4 100644
--- a/tvmet-1.7.1/include/tvmet/CMakeLists.txt
+++ b/tvmet-1.7.1/include/tvmet/CMakeLists.txt
@@ -1,10 +1,20 @@
+INCLUDE (CheckIncludeFiles)
+
# the following are directories where stuff will be installed to
-set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "The subdirectory to the header prefix" FORCE)
+set(INCLUDE_INSTALL_DIR
+ "${CMAKE_INSTALL_PREFIX}/include/tvmet"
+ CACHE PATH
+ "The subdirectory to the header prefix"
+ FORCE)
FILE(GLOB gmm_header_SRCS "*.h")
+CHECK_INCLUDE_FILES (dlfcn.h TVMET_HAVE_DLFCN_H)
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
+ ${INCLUDE_INSTALL_DIR}/config.h)
+
install(FILES
${gmm_header_SRCS}
- DESTINATION ${INCLUDE_INSTALL_DIR}/tvmet
+ DESTINATION ${INCLUDE_INSTALL_DIR}
)
diff --git a/tvmet-1.7.1/include/tvmet/config.h.cmake b/tvmet-1.7.1/include/tvmet/config.h.cmake
new file mode 100644
index 000000000..568cef979
--- /dev/null
+++ b/tvmet-1.7.1/include/tvmet/config.h.cmake
@@ -0,0 +1,73 @@
+#ifndef _INCLUDE_TVMET_CONFIG_H
+#define _INCLUDE_TVMET_CONFIG_H
+
+/* define if the compiler has complex<T> */
+#cmakedefine TVMET_HAVE_COMPLEX
+
+/* define if the compiler has complex math functions */
+#cmakedefine TVMET_HAVE_COMPLEX_MATH1
+
+/* define if the compiler has more complex math functions */
+#cmakedefine TVMET_HAVE_COMPLEX_MATH2
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#cmakedefine TVMET_HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the `floor' function. */
+#cmakedefine TVMET_HAVE_FLOOR 1
+
+/* Define if the compiler supports IEEE math library */
+#cmakedefine TVMET_HAVE_IEEE_MATH
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#cmakedefine TVMET_HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the `dl' library (-ldl). */
+#cmakedefine TVMET_HAVE_LIBDL 1
+
+/* Define to 1 if long double works and has more range or precision than
+ double. */
+#cmakedefine TVMET_HAVE_LONG_DOUBLE 1
+
+/* Define if the compiler supports the long_long type */
+#cmakedefine TVMET_HAVE_LONG_LONG
+
+/* Define to 1 if you have the <memory.h> header file. */
+#cmakedefine TVMET_HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `pow' function. */
+#cmakedefine TVMET_HAVE_POW 1
+
+/* Define to 1 if you have the `rint' function. */
+#cmakedefine TVMET_HAVE_RINT 1
+
+/* Define to 1 if you have the `sqrt' function. */
+#cmakedefine TVMET_HAVE_SQRT 1
+
+/* Define if the compiler supports SYSV math library */
+#cmakedefine TVMET_HAVE_SYSV_MATH
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#cmakedefine TVMET_HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#cmakedefine TVMET_HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#cmakedefine TVMET_HAVE_SYS_TYPES_H 1
+
+/* Define if the compiler recognizes typename */
+// ALWAYS ON -- so remove this define in the future.
+#define TVMET_HAVE_TYPENAME
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#cmakedefine TVMET_HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the ANSI C header files. */
+#cmakedefine TVMET_STDC_HEADERS 1
+
+/* Define to 1 if your <sys/time.h> declares `struct tm'. */
+#cmakedefine TVMET_TM_IN_SYS_TIME 1
+
+/* _INCLUDE_TVMET_CONFIG_H */
+#endif